cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

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

Relationship question.PNG

relationship pbi.PNGGraph that i want.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IV
Super User IV

Re: multi dates relationship with calendar table

@colourfullife 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.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

3 REPLIES 3
Highlighted
Super User IV
Super User IV

Re: multi dates relationship with calendar table

@colourfullife 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.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Highlighted
Super User IV
Super User IV

Re: multi dates relationship with calendar table

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.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Highlighted
Super User IV
Super User IV

Re: multi dates relationship with calendar table

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-TIT...


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors