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

Formatting a switch function

I currently have the following which allows a user to select the measure to plot:

 

METRIC = if(ISFILTERED('KPI_DAX'[VARIABLE_LABEL]),SWITCH(SELECTEDVALUE('KPI_DAX'[VARIABLE_LABEL]), "Accepts",[Accepts] ... (followed by several other metrics) ... ) , 0 )
 
However I would like some of the measures to be formatted as percentages, some as currency and some as numbers - is there a way to change the individual format of measures within the switch function?
 
1 REPLY 1
Anonymous
Not applicable

@rbruce545  - I don't think you can have a single measure with multiple formats.

One potential solution is to have 2 measures: One unformatted, to use in charts, and another formatted as text so that you can show the various formats.

Hope this helps,

Nathan

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.