Forum Discussion
ajrodr198203
2 years agoNew Member
Background Color based on Slicer Selection
Hello all, I have a requirement to change background color of a shape based on the filtered values from any of the slicers included on the report. The measure I have so far works but it changes t...
- Anonymous2 years ago
Hi ajrodr198203 ,
Thanks for the reply from danextian , please allow me to provide another insight:
You can try formula like below:
11 = VAR sel_practise = SELECTEDVALUE ( 'Table'[Requesting Practice] ) VAR choose = SELECTEDVALUE ( 'Table'[Requesting Practice] ) & " " & SELECTEDVALUE ( 'Table'[Order Status] ) VAR target_ = MAX ( data[Requesting Practice] ) & " " & MAX ( data[Order Status] ) VAR count_ = COUNTROWS ( FILTER ( data, data[Requesting Practice] = sel_practise ) ) RETURN IF ( count_ > 0, "Blue", IF ( choose = target_, "Blue", "Gray" ) )Best Regards,
Adamk KongIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
danextian
2 years agoSuper User
Hi ajrodr198203
Look into using ISFILTERED which returns true when the specified table or column is being filtered directly so if a filter is applied to Column A but not Column B, it returns true only for Column A.