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
I am trying to summarize total items using inactive relations, which i am able to do separately using "userelationship" function. I have 3 inactive relations to different dimension tables. Everything looks great when I visualize them separately. The challenge is when cross-filtering the visuals, The filter doesn't flow to other Tables as they don't have active relations.
I tried using the below function which doesn't work. Even tried replacing Userelationship with "CrossFilter" which dint help.
CALCULATE (
[Total items],
USERELATIONSHIP ( Date[Date], DataTable[CreatedDate] ),
USERELATIONSHIP ( dimAging[OpenAge_Bucket], DataTable[Open_Age_Bucket]),
USERELATIONSHIP (dimType[Open_type],DataTable[Open_type])
)
This is how my relationship looks:
Below is my challenge on getting cross-filtering working
Solved! Go to Solution.
@Sabarikumar7579 , The formula seems correct , Check createddate so not have any timestamp (Change datatype to datetime and use a format with date and check )
Try like
CALCULATE (CALCULATE (CALCULATE (
[Total items],
USERELATIONSHIP ( Date[Date], DataTable[CreatedDate] )),
USERELATIONSHIP ( dimAging[OpenAge_Bucket], DataTable[Open_Age_Bucket])),
USERELATIONSHIP (dimType[Open_type],DataTable[Open_type])
)
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
@Sabarikumar7579 , The formula seems correct , Check createddate so not have any timestamp (Change datatype to datetime and use a format with date and check )
Try like
CALCULATE (CALCULATE (CALCULATE (
[Total items],
USERELATIONSHIP ( Date[Date], DataTable[CreatedDate] )),
USERELATIONSHIP ( dimAging[OpenAge_Bucket], DataTable[Open_Age_Bucket])),
USERELATIONSHIP (dimType[Open_type],DataTable[Open_type])
)
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
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.
User | Count |
---|---|
18 | |
18 | |
17 | |
15 | |
13 |
User | Count |
---|---|
36 | |
34 | |
19 | |
18 | |
15 |