The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi All,
Is there a way to filter a fact tale with an inactive dimesion connection or do i have to duplicate my dimesion table for every connection with the fact table?
For example, if my fact table have two connections to the time dimension on registration date and installation date columns and the registration date is my active connection. Can is still filter in installation date?
I know that measures can relate to inactive connections using USERELATIONSHIP function and i want to know if there is somthing similar for filtering purposes?
Thanks!
Solved! Go to Solution.
In DAX, the USERELATIONSHIP() can only be used in CALCULATE() function. In this scenario, you can use CONTAINS() inside of FILTER() to get map columns under inactive relationship. Please refer to my sample below:
I have two tables.
I create two relationships, ID->Number, Name->Name, with only ID->Number active.
To filter the bigger table, I use formula below.
FILTER(ALL(Table4),CONTAINS(VALUES(Table3),Table3[Name],Table4[Name]))
It will filter tables based on names instead of numbers.
Regards,
In DAX, the USERELATIONSHIP() can only be used in CALCULATE() function. In this scenario, you can use CONTAINS() inside of FILTER() to get map columns under inactive relationship. Please refer to my sample below:
I have two tables.
I create two relationships, ID->Number, Name->Name, with only ID->Number active.
To filter the bigger table, I use formula below.
FILTER(ALL(Table4),CONTAINS(VALUES(Table3),Table3[Name],Table4[Name]))
It will filter tables based on names instead of numbers.
Regards,
Thanks for your help!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
78 | |
76 | |
43 | |
37 |
User | Count |
---|---|
157 | |
114 | |
64 | |
60 | |
55 |