Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Krish89
Helper II
Helper II

Country currency code at the end of Sales Revenue number(e.g, $500 USD)

Hello Power BI community,

 

I have a table in Power BI desktop as below.

Krish89_0-1623440951433.png

I created Total Sales measure on top of the above table data.

Total Sales = SUM(Sales[Revenue])
Now I visualise this data in Matrix visual as below.
Krish89_1-1623441127465.png
But I would like to see the data like below.
When I select Germany in the slicer, It should display the total sales by product for Germany and at the end of the sales value i need country currency code.
The currency code is available in the Sales table(above).
Krish89_2-1623441392625.png

Also If possible I would like to display the currency symbol at front as below.

Krish89_3-1623441693332.png

 

Thanks in Advance!!

 

 
1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Krish89 ,

 

Try to create a table with all currency symbols and then create relationship between your fact table and this currency symbol table based on [Currency] column. And then, create a measure like so:

Total Sales = MAX('Currency Symbol'[Currency Symbol]) & SUM(Sales[Revenue]) & MAX(Sales[Currency])

 

In addition, this will transfer the result from "Number" to "Text" format.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Krish89 ,

 

Try to create a table with all currency symbols and then create relationship between your fact table and this currency symbol table based on [Currency] column. And then, create a measure like so:

Total Sales = MAX('Currency Symbol'[Currency Symbol]) & SUM(Sales[Revenue]) & MAX(Sales[Currency])

 

In addition, this will transfer the result from "Number" to "Text" format.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi,

 

Please try this

 

New_Column = CALCULATE(CONCATENATE(FORMAT(SUM('Table'[REvenue]),""),min('Table'[Currency])))
 
Thanks!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.