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
markandrewolive
Frequent Visitor

Set format to currency and percentage when using SWITCH()

I have a report with a slicer that changes the metric being displayed so that, for each category, our client can switch between viewing the percentage of respondents or their projected annual revenue impact

 

When I use data labels, the project annual revenue impact looks exactly how I want it to:


Sample of Data Label.png

The number is condensed to "16M" and easy to read.

However, when I use "Total Data Labels", the number does not get condensed:

Total Data Label Example.png

Which can make it a bit messy and hard to read.

 

Normally, I'd fix this by changing the metric, but, in this case, my metric can be either a percentage or a dollar value.

Is there any way to standardize how a metric is displayed when it is a calculated measure using SWITCH()?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@markandrewolive , when you use to switch it has that problem. For that calculation group using tabular editor is an alternate, there you can different format for each number 

 

tabular - Calculation groups
https://docs.microsoft.com/en-us/analysis-services/tabular-models/calculation-groups?view=asallprodu...

 

calculation groups
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

 

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @markandrewolive,

Did the above suggestion help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@markandrewolive , when you use to switch it has that problem. For that calculation group using tabular editor is an alternate, there you can different format for each number 

 

tabular - Calculation groups
https://docs.microsoft.com/en-us/analysis-services/tabular-models/calculation-groups?view=asallprodu...

 

calculation groups
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

 

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.