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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Data Labels and Formatting via calculation group

Hi everyone,

 

I stumbled across some weird behaviour concerning formatting via calculation items and data labels.

So I have a calculation group with two items

  • "None" - applies nothing
    • Expression: SELECTEDMEASURE()
    • Format String Expression: SELECTEDMEASUREFORMATSTRING()
  • "Formatted" - should format the number to millions with no decimal places:
    • Expression: SELECTEDMEASURE()
    • Format String Expression: "#,#0,,.M"

Now this calcualtion group does indeed work with e.g. tables but when I want to use this in data labels it does not work, instead it simply adds an "M" at the end of the value, without formatting the value:

SvenApl_0-1686086372780.png

 

Are data labels somehow calculated differently? Or could it simply be a bug because of the new features regarding dynamic data labels and such?

 

Perhaps someone here can shed some light!


Thank you 🙂

 

1 ACCEPTED SOLUTION
some_bih
Super User
Super User

Hi @Anonymous check link from sqlbi https://www.sqlbi.com/articles/introducing-dynamic-format-strings-for-dax-measures/ 





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

Proud to be a Super User!






View solution in original post

2 REPLIES 2
some_bih
Super User
Super User

Hi @Anonymous check link from sqlbi https://www.sqlbi.com/articles/introducing-dynamic-format-strings-for-dax-measures/ 





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

Proud to be a Super User!






Anonymous
Not applicable

Hi! Thanks for the tip! It seems that this is a bug in Power BI or sucht. Alberto on SLQ BI took a look at it.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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