Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
CoboleiroBr
Helper I
Helper I

Help using multiple date relationships

Hello guys!

 

I have a Calendar table and a Tickets Table. 

 

The most important columns in Tickets Table are:

- Ticket Number

- Open Date

- Response Date

- Close Date

 

They are related with Calendar table by Open Date (active relationship), Response Date (inactive), Close Date (inactive).

 

I have a report and I need to filter the Tickets by Open Date. I use the Calendar Date in the slicer and it's working perfectly.

 

But how to use the Calendar date in the slicer to filter by Response Date? Is that possible?

 

I guess it's not possible, so I created a table called Responsed Tickets, filtering only the Tickets that were already responded. The problem is I can't create a relationship with Calendar Date, because another column in Tickets table is using a RELATED dax statement with calendar (to know if it's a holiday), and I get a circular reference.

 

How are you used to deal with it?

 

Thanks!

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

In some cases, you will want to create another duplicate calendar table that you relate to your other date. The other option is to use the USERELATIONSHIP with measures but that may not work in your specific case.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

In some cases, you will want to create another duplicate calendar table that you relate to your other date. The other option is to use the USERELATIONSHIP with measures but that may not work in your specific case.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler !

 

I'm already using USERELATIONSHIP in measures, but I didn't find a solution in this case besides creating other Calendar Table...

 

Thanks!

Once I toyed around with creating a third calendar table related to my two calendar tables and using that as my central calendar table but I am pretty sure that ran into issues. I'd have t revisit.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.