Forum Discussion
Filtering visuals using slicers combinations
- 1 year ago
Hi Bimbone ,
Thank you for reaching out to us on the Microsoft Fabric Community Forum.
Please post regarding the same in the issues forum for wider visibility:
Issues - Microsoft Fabric Community
If this post was helpful, please give us Kudos and consider marking Accept as solution to assist other members in finding it more easily.
Hey there,
This happens because the CONTAINSROW function requires all columns of the table expression to be specified.
You need to ensure that all required columns are correctly referenced. Hereโs how you can modify the measure:
SelectedSFPairs =
VAR SelectedComp = SELECTEDVALUE(CoppeCitte[Competizione])
VAR SelectedYear = SELECTEDVALUE(CoppeCitte[Anno])
VAR SelectedCity = SELECTEDVALUE(CoppeCitte[CittaMain])
RETURN
IF(
CONTAINSROW(
VALUES(CoppeCitte),
CoppeCitte[Competizione], SelectedComp,
CoppeCitte[Anno], SelectedYear,
CoppeCitte[CittaMain], SelectedCity
), 1, 0
)
Then use SelectedSFPairs as a visual filter on the table and set it to 1 so only matching records are displayed.
Hope this helps!
๐๐