web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to add decimal point between two different fields in single text box in SSRS report.

(1) ShareShare
ReportReport
Posted on by 230
Hi Team,
 
I am having two different fields with different data type in one text box.
 
    Fields               Data Type
1. Amount -        Real
2. AmountUSD - Int64
 
At one time only one field having the data either Amount or AmountUSD
 
Below code i used in SSRS report.
=Fields!Amount.Value or Fields!AmountUSD.Value
If amount field having the data i would like to display in report with decimal points like below.
2,500,563.00
 
If AmountUSD field having the data i would like to display in report without decimal points like below.
2,500,563
 
Please let me know how to achieve this.
 
Thanks,
 
Categories:
I have the same question (0)
  • Verified answer
    Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi,
     
    Try to add the expression like the following:
     
    =IIf(Not IsNothing(Fields!AmountUSD.Value),
    Format(Fields!AmountUSD.Value, "#,##0"),
    Format(Fields!Amount.Value, "#,##0.00"))
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi,

    Is your issue resolved?  If yes, mark the answers that helped you as verified.

    Thanks
    Waed Ayyad
  • Verified answer
    CU21091228-0 Profile Picture
    230 on at
    Thanks for the reply.
     
    It's working
     
    =IIf((Fields!AmountUSD.Value),
    Format(Fields!AmountUSD.Value, "#,##0"),
    Format(Fields!Amount.Value, "#,##0.00"))
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans