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! Request now

Reply
abloor
Helper IV
Helper IV

JSON theme: Data label "Display units". How to set to e.g. Millions

Hi,

 

I'm trying to set my theme file so that the Label Display Units come up as millions.  (Otherwise the labels 'error' as there is too much text to fit in, therefore doesn't show them at all.)

 

Below is the code relating to the chart I want to do it with.  Where below for "labelDisplayUnits" I have 0, I have tried Millions/millions but it doesn't work.  Anything I put in the quotation marks other than 0 changes it to Trillions!

 

Is there a way I can make it show as millions?  Alternatively, my issue would also be fixed if I could turn the 'Overflow text' option to ON.  Is there a way to do this?

 

Thank you

 

 

"ribbonChart":

{"*":{"general":[{"responsive":true}],

"categoryAxis":[{"show":true}],

"valueAxis":[{"show":false}],

"labels":[{"show":true,

"color":{"solid":{"color":"#777777"}},

"fontFamily":"Segoe UI",

"fontSize":9,

"labelDisplayUnits":"0"}]}},

1 ACCEPTED SOLUTION

@abloor ,

 

See code below.

  "labelDisplayUnits":{  
      "expr":{  
         "Literal":{  
            "Value":"1000000D"
         }
      }
   }
Community Support Team _ Sam Zha
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

4 REPLIES 4
v-chuncz-msft
Community Support
Community Support

@abloor ,

 

Yes, check the reply from jsh121988 in this post.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-chuncz-msft 

Thanks for your reply.  Can you please guide me as to which bit of that post is the solution to my question? Or did you put the wrong link up?  I can't see how that relates to my question?

 

Thanks very much Cat Very Happy

@abloor ,

 

See code below.

  "labelDisplayUnits":{  
      "expr":{  
         "Literal":{  
            "Value":"1000000D"
         }
      }
   }
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-chuncz-msft  Thanks very much, that worked!

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.

Top Solution Authors
Top Kudoed Authors