Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

SSRS Report Using FetchXML - Formatting and Parameter Question

(0) ShareShare
ReportReport
Posted on by 375

I have a two-part question surrounding the same report I am attempting to complete.  One is probably a simple fix while the other, not so sure about.

First:

I haven't yet seen this. I am attempting to adjust formatting on a cell for currency.  The display should be $50.00 for example.  The source attribute is currency from Dynamics to begin with but the result is 50.0000 even though the setting is:

SSRS_5F00_FS01.PNG

My second question is on how I should go about building a parameter so that when users run the report, they select a customer from the dataset in the report but its showing the same name multiple times.  I mean this makes sense I guess because the sample dataset has 5 rows which the same customer is listed 3 times.  If I were to build another dataset of only accounts, any suggestions as to how to tie it to the primary dataset so that the results show everything related to that customer and NOT all 5 rows?

*This post is locked for comments

  • Verified answer
    RugerSR762 Profile Picture
    RugerSR762 375 on at
    RE: SSRS Report Using FetchXML - Formatting and Parameter Question

    Nevermind I got it :-)

    =Switch(Fields!GroupValue.Value = 1, FormatCurrency(Fields!lv1price_base.Value,2), 
    Fields!GroupValue.Value = 2, FormatCurrency(Fields!lv2price_base.Value,2))


    Thanks for guiding me down the right path!

  • RugerSR762 Profile Picture
    RugerSR762 375 on at
    RE: SSRS Report Using FetchXML - Formatting and Parameter Question

    Ok so just to clarify, I am already using a Switch function to look at an option set value on one attribute then returning a corresponding currency value on another. 

    For example:

    =Switch(Fields!GroupValue.Value = 1, Fields!lv1price_base.Value,

    Fields!GroupValue.Value = 2, Fields!lv2price_base.Value)

    How would I apply your suggestion to this?

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 1,019 Super User 2025 Season 1 on at
    RE: SSRS Report Using FetchXML - Formatting and Parameter Question

    Hi RugerSR762,

    You can add the $ symbol with a format expression. For example:

    =Switch(Fields!Code.Value="GBP", Format(Fields!YourDecimalValues.Value, "'£'#,0.00;('£';('£'#,0.00))"),
    Fields!Code.Value="USD", Format(Fields!YourDecimalValues.Value, "'$'#,0.00;('$'#,0.00)"),
    Fields!Code.Value="AUD", Format(Fields!YourDecimalValues.Value, "'$'#,0.00;('$'#,0.00)"),
    Fields!Code.Value="CAD", Format(Fields!YourDecimalValues.Value, "'$'#,0.00;('$'#,0.00)"),
    Fields!Code.Value="EURO", Format(Fields!YourDecimalValues.Value, "'€'#,0.00;('€'#,0.00)"),
    Fields!Code.Value="NOK", Format(Fields!YourDecimalValues.Value, "'kr'#,0.00;('kr'#,0.00)"),
    Fields!Code.Value="RUB", Format(Fields!YourDecimalValues.Value, "'py6'#,0.00;('py6'#,0.00)"),
    Fields!Code.Value="COP", Format(Fields!YourDecimalValues.Value, "'COL$'#,0.00;('COL$'#,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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans