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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
dokat
Post Prodigy
Post Prodigy

Change data format based on metric selection

Hi,

 

I have a report where i select different metrics based on a button selection(bookmarks). My stacked column chart displays in thousands based on selection however how can i change data format to percentage when Trade Rate metric is selected.

 

dokat_0-1692036999813.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @dokat 

With a bookmark, you can display a different visualization each time, so you can design and format each one according to your preferences.

It would be helpful if you could attach a sample file if I didn't understand correctly.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

5 REPLIES 5
Ritaf1983
Super User
Super User

Hi @dokat 

With a bookmark, you can display a different visualization each time, so you can design and format each one according to your preferences.

It would be helpful if you could attach a sample file if I didn't understand correctly.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

@Ritaf1983 I found a workaround using slicers rather than button. Thanks

@Ritaf1983 Thanks for your response but that didnt work. I tried below measure it didnt give any error message however returned blank values, When 'ID'[ID]= 1,2,3,4, I'd like values in stacked column chart to display in $0.00 K" format. If 'ID'[ID]=9 in % format "0.0%".  Below you will find the screen shot of the results. Not sure what the work around is.

 

Output Selected Calculation = 
SWITCH(
  SELECTEDVALUE('ID'[ID])
   ,1,FORMAT(CALCULATE([Output Gross Sales]),"$#,##0")
   ,2,FORMAT(CALCULATE([Output OIS]),"$#,##0")
   ,3,FORMAT(CALCULATE([Output NS]),"$#,##0")
   ,4,FORMAT(CALCULATE([Output Trade Spend]),"$#,##0")
   ,5,CALCULATE([Output Volume])
   ,6,CALCULATE([Output Packages])
   ,7,CALCULATE([Output ASP])
   ,8,CALCULATE([Output ANSP])
   ,9,FORMAT(CALCULATE([Output Trade Rate]),"0.0%")
)

 

  Screenshot 2023-08-13 213240.png

Hi @dokat 
Can you attach a link to some sample pbix ?
I will try to help.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

tHANKS @Ritaf1983 i found a work around the problem using slicers. I am all set for now. Thanks for checking in.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.