cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sanjanarama
Resolver I
Resolver I

conditional formatting with hiding data display of a table

I have a table and a filter, only after selecting a filter i wanted to show data in a table for which i used below measure 

DisplayTable = CALCULATE(IF( ISFILTERED(Table1[Part Three]) ,1,0), ALLSELECTED (Table1 ) )

Also along with that i wanted to change font based on value of another column, dax is 
Measure 6 = if(MAX(Table1[Part One]) = "Base Management",1,0)

sanjanarama_0-1653649392423.png

sanjanarama_1-1653649457595.png



after adding this conditional formating my table is showing all the data, i.e DisplayTable dax to show data based on filters is not working. any idea?



1 ACCEPTED SOLUTION
sturlaws
Resident Rockstar
Resident Rockstar

Hi,

 

the measure [DisplayTable] did not make much sense. I have retwritten it in this sample report I created based on the information you provided. I also had to create second table with the Part 3 :
sample report 

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

View solution in original post

3 REPLIES 3
sturlaws
Resident Rockstar
Resident Rockstar

Hi,

 

the measure [DisplayTable] did not make much sense. I have retwritten it in this sample report I created based on the information you provided. I also had to create second table with the Part 3 :
sample report 

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

@sturlaws 

thank you, but what if there are multiple slicers in the report without any one selecting results should not display. for example now only part 1 column slicer is available, next i need both part 1 and part 2. 


I modified your measure, but this is not working 

DisplayTable = IF( ISFILTERED('dimPart3'[part3]) || ISFILTERED('Table'[part1]) ,1,0)



You need to create DimPart1, similar to DimPart3, and add DimPart[Part1] to the slicer

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors