March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi there,
I want to make cascade slicers but the relationship of the two columns is inactive because of ambiguity introduced by another table. How to enable the cascade slicers?
Situation explained: I have 3 tables:
1. DimCompany
2. DimCampus
3. DimStudent
My data model is:
The relationship between DimCampus[CompanyKey] and DimCompany[CompanyKey] is inactive because both [CompanyKey] and [CampusKey] are present in DimStudent.
The report is:
I want the two slicers CompanyName and CampusName to be cascade to each other. I'd appreciate anyone provide hints or solutions!
Solved! Go to Solution.
Hi @KylieF ,
I create three tables as you mentioned.
Then I create a new table and here is the DAX code.
BridgeTable =
DISTINCT(
UNION(
SELECTCOLUMNS(DimStudent, "CompanyKey", DimStudent[CompanyKey], "CampusKey", DimStudent[CompusKey]),
SELECTCOLUMNS(DimCampus, "CompanyKey", DimCampus[CompanyKey], "CampusKey", DimCampus[CompusKey])
)
)
I also create two relationships between them.
Finally you will get what you want.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @KylieF ,
I create three tables as you mentioned.
Then I create a new table and here is the DAX code.
BridgeTable =
DISTINCT(
UNION(
SELECTCOLUMNS(DimStudent, "CompanyKey", DimStudent[CompanyKey], "CampusKey", DimStudent[CompusKey]),
SELECTCOLUMNS(DimCampus, "CompanyKey", DimCampus[CompanyKey], "CampusKey", DimCampus[CompusKey])
)
)
I also create two relationships between them.
Finally you will get what you want.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
What I've learned is that setting it to bidirection is not a good practice because it might yield undesired results. We should always avoid using it. Any other solutions?
You could create calculated columns in your DimStudent table for both CompanyName and CampusName and then use those in your slicers.
Company Name = RELATED('DimCompany'[CompanyName])
If you change the cross-filter direction of both of the active relationships from "Single" to "Both", that should work.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
84 | |
67 | |
54 | |
43 |
User | Count |
---|---|
203 | |
106 | |
98 | |
65 | |
56 |