Forum Discussion
How to manage multiple relationship?
Hello everyone,
I have the following strucutre:
DateDim table - Date DATE
PersonActivity Table - ActivityStartDate DATE, ActivityEndDate DATE
I want to filter the report based on the ActivityStartDate and ActivityEndDate, I'm trying to set relation between DataDim and PersonActivity table but only one relation is active at a time.
How can I manage to have filer on multiple filed from One table linked with multiple fields to dimension table.
Thanks,
4 Replies
- BhaveshPatelSuper User
A BLOG from Matt Allington can solve the problem from you. In addition to this, the link from SQLBI also has some more detailed explaination on this topic.
- dkay84_PowerBIMicrosoft Employee
I'm likely wrong but I think that blog post is a bit more than was being asked for (but very informative).
Try using the function USERELATIONSHIP as described here: https://www.sqlbi.com/articles/userelationship-in-calculated-columns/
- iLikeAzureSQLHelper I
Thank you for reference,
I read that but in my model I can't enable BOTH directional, I'm using DirectQuery and that might be limiting my options!
Any other suggestions ?