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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
RajaSadagopan
Regular Visitor

Custom Display unit for visualisation

RajaSadagopan_0-1729750428268.png

Hi Y'all,

I want to display the bn as B for all the charts and visualisation, aswell as want to have the auto display feature where if the data is filtered, it automatically changes to M,K or B depending on the filter.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @RajaSadagopan ,

I create a table as you mentioned.

vyilongmsft_0-1729839835408.png

The only displays of numbers in the Donut chart are the following.

vyilongmsft_2-1729840115639.png

Since Measure for Donut chart in PowerBI can only be placed in tooltips, you can create a Measure.

FormattedAmount =
VAR AmountInBillion =
    MAX ( 'Table'[Amount] ) / 1000000000
RETURN
    FORMAT ( AmountInBillion, "0.0" ) & "B"

vyilongmsft_1-1729840002713.png

If you want to use Dynamic Format Strings for Measures, you can check this official documentation below: Deep dive into the new Dynamic Format Strings for Measures! | Microsoft Power BI Blog | Microsoft Po...

vyilongmsft_3-1729840285380.png

vyilongmsft_4-1729840305943.png

 

 

Best Regards

Yilong Zhou

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

3 REPLIES 3
Anonymous
Not applicable

Hi @RajaSadagopan ,

I create a table as you mentioned.

vyilongmsft_0-1729839835408.png

The only displays of numbers in the Donut chart are the following.

vyilongmsft_2-1729840115639.png

Since Measure for Donut chart in PowerBI can only be placed in tooltips, you can create a Measure.

FormattedAmount =
VAR AmountInBillion =
    MAX ( 'Table'[Amount] ) / 1000000000
RETURN
    FORMAT ( AmountInBillion, "0.0" ) & "B"

vyilongmsft_1-1729840002713.png

If you want to use Dynamic Format Strings for Measures, you can check this official documentation below: Deep dive into the new Dynamic Format Strings for Measures! | Microsoft Power BI Blog | Microsoft Po...

vyilongmsft_3-1729840285380.png

vyilongmsft_4-1729840305943.png

 

 

Best Regards

Yilong Zhou

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

shafiz_p
Super User
Super User

Hi @RajaSadagopan  You can acheive this by using a custom label measure. For my case, I want to change dynamic label for measure Revenue. Try below code:

DynamicLabel = 
SWITCH(
    TRUE(),
    [Revenue] >= 1000000000, FORMAT([Revenue]/1000000000, "0.0") & "B",
    [Revenue] >= 1000000, FORMAT([Revenue]/1000000, "0.0") & "M",
    [Revenue] >= 1000, FORMAT([Revenue]/1000, "0.0") & "K",
    FORMAT([Revenue], "0")
)

 

Select the visual, turn on Data Label, go to value and replace default measure with the newly create custom dynamic label measure. See image below:

shafiz_p_0-1729752043837.png

 

Hope this helps!!

If this solved your problem, please accept it as a solution!!

 

 

Best Regards,
Shahariar Hafiz

Hi Thank you!! But the above solution is working only for Bar and column chart. What about Pie and donut??

RajaSadagopan_0-1729753304919.png

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors