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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.