Forum Discussion
multi dates relationship with calendar table
Hi,
I awlays have problems when i create relationships multiful dates with a calendar table.
i have 3 columns of dates in 1 table.
when i create one relationship with the calendar. the other 2 are not working in the graph..!
i've been playing this and that.. but haven't get the anwer.!
i want to know how to create 3 relationships with 3 dates, working properly
Anonymous there can only be one active relatoinship between two tables but other relations will be inactive, you can create measure and use userelationship function to make inactive relationship active and then use measures in your visual. read more here
Would appreciate Kudos 🙂 if my solution helped.
3 Replies
- parry2k
Super User
Anonymous there can only be one active relatoinship between two tables but other relations will be inactive, you can create measure and use userelationship function to make inactive relationship active and then use measures in your visual. read more here
Would appreciate Kudos 🙂 if my solution helped.
- Ashish_Mathur
Super User
Hi,
You will have to create inactive relationships and thenuse the USERELATIONSHIP() function within your measures. To get more specific help, share some data, explain the business context and show the desired result.
- Greg_Deckler
Community Champion
Right, either use 3 date/calendar tables. Or, use three relationships (2 inactive) and use USERELATIONSHIP in measures for 2 of them. Or, don't create a relationship at all and put the logic in your measures (3 of them). See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008