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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
AxBI
Regular Visitor

Display Unit logic

Hey there,

I'm wondering if anyone has any input on how Power BI determines which unit to apply when "Display Units" is set to "Auto".  There are times when the Auto-selected unit seems innappropriate (even when there is great disparity in the values for different categories). 

For example, in the picture below.  The highest value is 257 million (mn) and the lowest is 25 thousand (k), yet Power BI sets the unit to billions.  I would assume that it would make more sense for the auto option to be millions or thousands.
AxBI_0-1693226704054.png
My questions are:

1. What is the logic that Power BI uses to automatically determine the Display Unit?

2. Are there any ways to encourage a certain/better type of unit (bn,mn,k, etc) seclection while keeping it dynamic?

Thanks!

 

1 REPLY 1
danextian
Super User
Super User

Hi @AxBI ,

 

Question1: I have no idea what's the logic behind.

Question2: You can certainly use DAX to create a custom unit label. Below is  a sample formula from another thread -

Custom Unit Label = 
VAR SafeLog =
    IFERROR ( ABS(INT ( LOG ( ABS ( [Total] ), 1000 ) )), 0 )
VAR dp = 1
RETURN
    ROUND ( DIVIDE ( [My Measure], 1000 ^ SafeLog ), dp )
        & SWITCH ( Safelog, 1, "K", 2, "M", 3, "bn", 4, "tn" )

https://community.fabric.microsoft.com/t5/Custom-Visuals-Ideas/Auto-Format-Numbers-in-Billions-Milli... 

Custom label tutorial - https://www.youtube.com/watch?v=J56xoO5tWhk 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.