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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
SvenApl
New Member

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 @SvenApl 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 @SvenApl 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!






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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.