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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Seantb
Frequent Visitor

Dynamic Data Labels Formatting for Switch Measure (April 2023 Updated feature)

Hi all,

I am trying to utilise the new dynamic formatting for measures feature that was released in the April 2023 update but am having trouble getting it to work as i need. 

I have a slicer I am using to to be able to switch the chosen measure in a series of clustered column charts between the actual count and actual value of invoices of my data set and the count % and value %, following the process in the RADACAD link below. This is working perfectly however I now require the data labels to be in the correct formatting for each chosen measure. 

Change the Column or Measure Value in a Power BI Visual by Selection of the Slicer: Parameter Table ...

Until the April 2023 update i realised i would need to use calculation groups, but with the update i would like to use the new dynamic format feature for measures. I've tried to create a switch measure in the Format field and whilst the % and actual count measures are appearing as required, the actual value of invoices are not. I need this measure to be in Millions (M), but when i put the number formatting string in the switch measure it does not work. Could you please review the above and the below screenshots of each and advise where i am going wrong with the formatting for the value of invoices? 

My Measure

Seantb_0-1681475068629.png

My Measure Format

Seantb_1-1681475108830.png

 

My Slicer fields 

Seantb_2-1681475123821.png


Really appreciate any help you could give 🙂 

1 REPLY 1
DataInsights
Super User
Super User

@Seantb,

 

Have you tried using a fields parameter? This is a simpler way to achieve dynamic measure switching, and the format of each measure is preserved.

 

https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters 

 

To format a measure in millions, add #,, in the format property (it's a drop-down, but you can manually enter a custom format string).





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

Proud to be a Super User!




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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors