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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Need to change $ symbol format based on slicer selection

Hi,

 

i have a table with single column having two values(a derived table)

Toggle
Sales
Units


This i am pulling as a slicer. Now based on the value of 'Toggle' i need to switch b/w two measures
1. Sales_Measure
2. Units_Measure

Now Sales_measure is in $ format. Units is in decimal.

Now when i toggle b/w these two measures using a new conditional measure like

IF Toggle="Sales" then sales_measure else units_measure 

now this new conditional measure shows $ format at all times (value format set as Auto). Units in $ format doe not make sense.

Any way we can change the $ symbol also based on slicer selection?

I don't want to use bookmarks as the changes are many.


Regards,

Mukul

10 REPLIES 10
dlopesc04
Resolver II
Resolver II

It should be noted that nowdays we have Dynamic formating, solving this issue and working for charts as well.

MFelix
Super User
Super User

Hi  @Anonymous ,

 

If you are using and if statment to change between to measure that are in different formats you need to use the format option give you the correct format in your case:

MEASURE FORMATTED = IF (SELECTEDVALUE(Table[Toggle])="Sales" ;FORMAT( [sales_measure], "###.###,00$" ;FORMAT([units_measure]; "###.###" ))

 

You can play around with the formats if they are not correct with your model.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

thanks @MFelix ,

 

I came up with exact same approach and i would have accepted this as an answer BUT BUT....
I tested it quite a bit. FORMAT function converts measure into string. 

In case of card visual that works but when i try to put this new measure into some visual like bar chart, donut, etc.
it doesn't come in value section as it's in string format.

What should i do man!

Hi @Anonymous ,

 

Based on my test, it does not work even after you modify the data types of [sales_measure] and [units_measure].Using bookmarks may be the only way.

 

Best Regards,

Dedmon Dai

Anonymous
Not applicable

Yeah! that i checked too. Tried every possible way i guess till now.
We should have a funcitonality to change even formats also using conditional formatting or something. that would really help man!

 I suggest you create an idea in Power BI forum  https://ideas.powerbi.com/forums/265200-power-bi-ideas.

Anonymous
Not applicable

Done that.
anyone looking for this thing and wandering here please vote on below idea
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/36957196-dynamic-currency-formatt...

Hi @Anonymous ,

 

That's the problem with format.

 

If you are using charts best options is two charts and a bookmark


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



amitchandak
Super User
Super User

You can change the format of the column or measure. Click on that, it should be under column tool in March 2020 release

Data Format New Rib.pngData Format.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

Try using the CONVERT function to convert between whole number or decimal number and currency.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors