cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Zaeem7 Frequent Visitor
Frequent Visitor

Different Conditional Formatting to different Measures selected through a slicer

I have created a Matrix chart and the Measures in it are getting dynamically selected using a slicer(seperate table with only Measure names). The DAX expression for the slicer table is: Measure Display =
IF (
HASONEVALUE ( 'Table2'[Measure] ),
SWITCH ( VALUES ( 'Table2'[Measure] ),
"Sales", [Sales Amt],
"Gross Profit", [Gross Profit Amt],
"Operating Profit", [Operating Profit Amt],
"Gross margin",FORMAT( [Gross Margin Amt], "Percent"),
"OP%",FORMAT([OP%],"Percent")
)
)

 

Now, i have selected this Measure Display into Values in my Matrix chart which is being displayed through the selection done on slicer.  But as this is the only field, how can i apply different rules of conditional formatting to different Measures selected through the slicers. Please help

 

Thanks!

Zaeem

5 REPLIES 5
Microsoft v-yulgu-msft
Microsoft

Re: Different Conditional Formatting to different Measures selected through a slicer

Hi @Zaeem7,

 

No. It is not available to apply different rules of conditional formatting to different Measures depend on slicer selection.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Zaeem7 Frequent Visitor
Frequent Visitor

Re: Different Conditional Formatting to different Measures selected through a slicer

Hi @v-yulgu-msft

 

Thanks for the confirmation.

 

Can you also please suggest other way around to represent Matrix Chart with Dynamic Measure's selection as per which Measure user wants to see and also the capability to apply different Conditional Formatting to each Measures.

 

Please reply if you have developed anything a bit similar to my requirement. Any other suggestion is acceptable 🙂

 

Thanks!

Zaeem

Microsoft v-yulgu-msft
Microsoft

Re: Different Conditional Formatting to different Measures selected through a slicer

Hi @Zaeem7,

 

As I mentioned above, we can show different measures conditionally based on slicer selection. However, it is not supported to apply different conditional formattings to each measure, no matter which solution we use to achieve showing dynamic measure in visual. 

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
vk_pro Frequent Visitor
Frequent Visitor

Re: Different Conditional Formatting to different Measures selected through a slicer

I had a similar issue. I used the next solution:
1. I added several matrix tables and several buttons.
2. Created bookmarks for every matrix
3. Added action to buttons.

Sergiy Member
Member

Re: Different Conditional Formatting to different Measures selected through a slicer

Hi @Zaeem7 ,

 

>But as this is the only field, how can i apply different rules of conditional formatting to different Measures selected through the slicers. Please help

 

Here is an example of how it can be achieved:

https://www.dropbox.com/s/4vo6hvn7fdt1n8j/CompositeMeasureConditionalFormatting.pbix?dl=0

 

1.png

Is it what you were after?

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors