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.
Hi again freginier ,
thanks for the suggestion, but I still have some errors, as it says it "Cannot find name [Competizione] and "Cannot find name [Anno]" and "Cannot find name [CittaMain"] , in the bottom part of the code (after the VALUES)
Hey there!
The issue is because Power BI cannot recognize the column names, check if the column names are correct in the CoppeCitte table, if the names aren't exactly the same it wont work as Power Bi is very sensitive! Also maybe CoppeCitte isn't the correct table name, check that this is correct too.
If after you checked and it is still not working, try using this DAX formula (it uses ALLSELECTED() Instead of VALUES())
SelectedSFPairs =
VAR SelectedComp = SELECTEDVALUE(CoppeCitte[Competizione])
VAR SelectedYear = SELECTEDVALUE(CoppeCitte[Anno])
VAR SelectedCity = SELECTEDVALUE(CoppeCitte[CittaMain])
RETURN
IF(
LOOKUPVALUE(
CoppeCitte[SFPair],
CoppeCitte[Competizione], SelectedComp,
CoppeCitte[Anno], SelectedYear,
CoppeCitte[CittaMain], SelectedCity
) <> BLANK(),
1,
0
)
And remember to add SelectedSFPairs as a visual-level filter. Set it to "is 1" to only show the filtered records.
If the problem stilllll persists, try to refresh your data model (Home > Refresh).
Restart Power BI to ensure it recognizes recent changes.
If this still doesn't work I am not sure how to help ahahhah. Hope this works for you 😁😁
- Bimbone1 year agoHelper I
Hi freginier
Thank you again - now the measure works, however I still cannot get the intended result.
Maybe it's due to the fact that the slicer on the city is pointing to another table (not directly connected to CoppeCitta, but with another table in the middle...)
I will try to look for some simplification on the model...
Thanks anyway for your help!
- freginier1 year agoSolution Sage
No worries !
- v-menakakota1 year agoCommunity Support
Hi Bimbone ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.Thank you.
- Bimbone1 year agoHelper I
Hi,
unfortunately, it did not fully work. Still looking on some other ways to solve.