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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.