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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kinga
Helper I
Helper I

Dynamic Formatting of a Measures Slicer

I have created a measures slicer which toggles my visuals between the following selections - volume, spend, and weight. What I am trying to attempt is to have the formatting change based on the selection. For example, if I toggle to spend I would want it to show as a currency $, if volume I would want it to show a whole number without decimals with a comma, and weight would show as a number to two decimal places with commas.

 

Capture.PNGThis is my measure selection filter

 

Capture.PNGThis is one of the visuals. You can see here that volume is selected, but with the two decimal places it makes it more difficult to digest.

4 REPLIES 4
v-ljerr-msft
Employee
Employee

Hi @kinga,

 

I agree with @tjd and @Vvelarde that it is not possible to dynamically change the measure format directly in your scenario. And one possible solution is to create three measures and show each in a separate Matrix, then use the new released feature(Bookmarking, Selection pane and visual display controls, Bookmark links for shapes and images) to show each matrix accordingly at one time. For more details about these new features you can refer to the this article. Smiley Happy

 

Regards

Vvelarde
Community Champion
Community Champion

@kinga

 

Hi, is not a straight solution but you can try using Bookmarks , Links to Bookmarks (In image /Shape) and Selection Pane to show the differents scenarios.

 

Regards

 

Victor

Lima - Peru




Lima - Peru
tjd
Impactful Individual
Impactful Individual

If your Measure Slicer results in one common value measure say, SelectedMeasure, that is displayed as the table/matrix measure, I don't see how you're going to be able to change its formatting dynamically.

kinga
Helper I
Helper I

I have created a measures slicer which toggles my visuals between the following selections - volume, spend, and weight. What I am trying to attempt is to have the formatting change based on the selection. For example, if I toggle to spend I would want it to show as a currency $, if volume I would want it to show a whole number without decimals with a comma, and weight would show as a number to two decimal places with commas.

 

Capture.PNGThis is my measure selection filter

 

Capture.PNGThis is one of the visuals. You can see here that volume is selected, but with the two decimal places it makes it more difficult to digest.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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