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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Pldoyon1
Helper I
Helper I

Display units in charts with disconnected table of measures and SWITCH

Hello community, I have a bar and a pie chart where I use a measure with SWITCH and a disconnected table of many different measures in order to change the values. Charts in Power Bi can't display the units of each measures ($, %, etc) with SWITCH. I tried many possible solutions but I can't find the way to display the units correctly in charts. I tried FORMAT but it works only with tables. I tried Tabular editor with the calculation groups and I can't use it in my report. I tried other charts visuals. etc

 

So, do you know how I can solve this ?

 

Your help will be very appreciated.

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Pldoyon1 ,

 

You could try to add tooltip in your visual.

13.png

 

Reference: Create tooltips based on report pages in Power BI Desktop

 

 

Best Regards,

Stephen Tao

 

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

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @Pldoyon1 ,

 

You could try to add tooltip in your visual.

13.png

 

Reference: Create tooltips based on report pages in Power BI Desktop

 

 

Best Regards,

Stephen Tao

 

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

Hello Stephen, thanks for your response. I don't know who put an accepted solution to your post because it's not. Power BI should be able to show the units in the visuals correctly and that's not the case unfortunately. The tooltip is a patch for this problem. Do you think that it would be ok to use tooltip in tables ? No ! It's the same for charts. I think that power bi should review the codes for their visuals in order to accept the units when we use SWITCH or any other way to correct this would be appreciate.

Pldoyon1
Helper I
Helper I

Thanks for your very quick response ! Tabular editor works fine but I have a very big report and it changes the behavior of my other visuals.

 

The text box is a good idea but I have a lot of measures and I can't do this. I can't use bookmarks including data in my report. 

I would add the formatting text box logic to the disconnected table.  You already have the switch measure for the measures.  Just add a column to the disconnected table with the formating choice per row (eg, "$", "%", "0").  Then duplicate the switch measure and write the logic to give you the format string you need for the text box. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Yes, that's a good option thanks but I would definitely prefer to have it beside the data in the chart. I'm considering changing software because of this. I can't believe that Power Bi doesn't have this basic functionnality. It's a dashboard software with charts that doesn't show the units correctly ! Do you know if they're planning to change this eventually ?

MattAllington
Community Champion
Community Champion

If TE doesn't work, you may be out of luck. Maybe you could use no formatting at all for the measure and create a text box that generates the correct units and place that next to the axis. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
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!

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.

Top Solution Authors