Forum Discussion
Anonymous
5 years agoNot applicable
Filter based off conditional format colours
Is it possible to filter by colour / add a slicer to filter by colour on table that has conditional formatting on? i.e. I have a row of reds and greens based off of positive and negative figures -...
v-easonf-msft
Community Support
5 years agoHi , Anonymous
Please follow these steps:
1.create a measure and apply it to "font color conditional formatting。
color formatting = IF(SELECTEDVALUE('Table'[Data])<0,"green","red")
2.create another calculated table as below:
Slicer table = DATATABLE("Value",STRING,{{"All"},{"red"},{"green"}})
3. create a table control visual as below ,then apply it to visual filter pane
Visual control =
SWITCH (
SELECTEDVALUE ( 'Slicer table'[Value] ),
"green", IF ( SELECTEDVALUE ( 'Table'[Data] ) < 0, 1, 0 ),
"red", IF ( SELECTEDVALUE ( 'Table'[Data] ) > 0, 1, 0 ),
1
)
For more details,please check attached pbix file.
Best regards,
Eason