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 All,
I have a situation where I would like to have a slicer to reference 1 of 2 columns depending on what has chosen via another slicer.
Here's a simple example to try to explain...
DimTable as follows:
Fruit | Hierarchy 1 | Hierarchy 2 |
Apple | X | X |
Pear | Y | W |
Orange | Z | W |
FactTable as follows:
Choice | Fruit | Sales |
A | Apple | 10 |
A | Pear | 5 |
A | Orange | 15 |
B | Apple | 20 |
B | Pear | 15 |
B | Orange | 5 |
These tables are linked via a relationship on 'Fruit'.
Slicer 1 is based on the 'Choice' column in the Fact table. Slicer 2 is based on the 'Fruit' column in the Dim table. What I would like to be able to do is if slicer 1 is set to A, then 'Hierarchy 1' on the Dim table should be referenced by the slicer. But if slicer 1 is set to B, then 'Hierarchy 2' on the Dim table should be referenced by the slicer.
Hope this makes sense and someone can offer a way of doing this.
Cheers,
Matty
Solved! Go to Solution.
Hey @Matty
I made a video about something very similar to this on my Youtube channel. Check out this video and let me know if it helps your situation.
Hope this helps,
Parker
Hey @Matty
I made a video about something very similar to this on my Youtube channel. Check out this video and let me know if it helps your situation.
Hope this helps,
Parker
Hi Parker,
Thanks for the link - great trick and video!
I will give it a try with my report tomorrow and I'll let you know how I get on.
Thanks again.
Matty
@Anonymousvery cool! One suggestion is to use SELECTEDVALUE function vs FIRSTNONBLANK which has the benfit of returning NULL fi more than one or no value is selected.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |