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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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

@Anonymous  - 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.