Forum Discussion
Conditional Formatting on a text field based on Slicer selections from a separate dataset
Hi v-easonf-msft ,
Yes, both tables are not directly related to each other.
All the relationships are not able to fit into one picture but I will post them, hopefully you can follow.
123
Hi , Anonymous
Try measure as below :
Measure1 =
VAR _cotc =
CALCULATETABLE (
VALUES ( 'Brands&COTC'[COTC] ),
FILTER (
ALL ( 'Brands&COTC' ),
'Brands&COTC'[COTC] IN FILTERS ( Slicer[slicer_COTC] )
)
)
VAR _sku =
CALCULATETABLE (
VALUES ( 'Brands&COTC'[SKU Desc] ),
FILTER ( ALL ( 'Brands&COTC' ), 'Brands&COTC'[COTC] IN _cotc )
)
VAR _skureflect =
CALCULATETABLE (
VALUES ( 'Brand&SKU'[Description] ),
FILTER ( ALL ( 'Brand&SKU' ), 'Brand&SKU'[SKU Desc] IN _sku )
)
VAR _description =
CALCULATETABLE (
VALUES ( 'Data Table'[Customer ID] ),
FILTER ( ALL ( 'Data Table' ), 'Data Table'[Description] IN _skureflect )
)
RETURN
IF ( MAX ( 'Data Table'[Customer ID] ) IN _description, 1, 0 )Then apply it to background conditional formatting.
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
Hello v-easonf-msft ,
Thank you for your solution.
It first highlights all Item Descriptions when no filter selections are made. When COTC Slicer is applied, only those Item Descriptions which fall under that category are highlighted.
Also, I am not able to mark your answer as the solution because "Authentication Failed" error occurs.- v-easonf-msft6 years ago
Community Support
Hi, Anonymous
It first highlights all Item Descriptions when no filter selections are made. When COTC Slicer is applied, only those Item Descriptions which fall under that category are highlighted.
Sorry, I am not able to understand what you mean.
Has your problem been resolved? If there is something that does not meet your expected results, can you explain it in more detail.Best Regards,
Community Support Team _ Eason- Anonymous6 years agoNot applicable
Hi v-easonf-msft ,
Yes your solution works.
In my previous reply I was trying to explain what was the result of the measure you shared.
Sorry for the confusion.
Thank you for your assistance!