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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
AlanP514
Helper V
Helper V

Dynamic For Bar chart for multiple currency

AlanP514_0-1674104019312.png

Here you can see in card visuals currecny value is populating based on the currency toggling option , for creating this dynamic card visuals is used (Refer image 1)

Image 1

 

_Revenue =

VAR _DisplayUnits = IFERROR ( ABS(INT ( LOG ( ABS ( [Revenue.] ), 1000 ) )), 0 )

VAR _DecimalPlaces = 2

VAR _AMT = ROUND ( DIVIDE ( [Revenue.], 1000 ^ _DisplayUnits ), _DecimalPlaces )

 

RETURN

 

COMBINEVALUES(" " ,

SWITCH (

    VALUES ( '_Currency Type Filter'[Currency] ),

    "LC",FORMAT ( _AMT, [_LC Format] ),

    "SEK", FORMAT (_AMT, [_SEK Format] ),

    "USD", FORMAT ( _AMT, [_USD Format]),

    "EURO", FORMAT ( _AMT, [_EUR Format])

)

,

SWITCH ( _DisplayUnits, 1, "K", 2, "M", 3, "bn", 4, "tn" )

)


Here the challenge is i want to use the same logic also for bar chart it means if i select currency value anything it usd or currency format also should change in bar chart , currently i cannot use the same measure it is not working the image 1 is returning only 1 value but in bar chart i want to show multiple pRODUCTS AND MULTIPLE VALUES

i am attaching pbi file with dummy data
Thanks



1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

I tried to create a new measure [Rev V2], and utilized Tabular Editor to show different types of currency format on the visualization.

 

Jihwan_Kim_0-1674111440209.png

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

3 REPLIES 3
Aburar_123
Resolver IV
Resolver IV

Hi @Jihwan_Kim , really it helps. May i know what changes you did in the Tabular editor to make the values displayed with Currency symbol?

Hi,

Thank you for your message.

If you go into the tabular editor, you can try writing DAX formula something like below.

You can also see this in the attached file down below.

 

Jihwan_Kim_0-1674117566432.png

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

I tried to create a new measure [Rev V2], and utilized Tabular Editor to show different types of currency format on the visualization.

 

Jihwan_Kim_0-1674111440209.png

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.