Aligning dates

cmcreynolds

Active Member
Joined
May 21, 2015
Messages
295
I have multiple dates I'm pulling via PQ and I also have a calendar table. If I want to use a timeline to filter ALL (maybe 5?) my dates, do I create relationships between the calendar table and every one of the 5 fields I'm pulling?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Not too sure if I got your question right:
Shall this timeline work/filter during the load of the data or does your question mean how you join the tables in the data model in order to do all sorts of interactive slicing on the reports then?
 
Upvote 0
You can not create multiple active relationships between the same two tables. Typical example is a Calendar table and an Orders table that has Orders[OrderDate] and Orders[ShipDate]. Only 1 of those can be Active. Measures against the non-active column would need to use the USERELATIONSHIP() function to activate it.
 
Upvote 0
Imke - I was torn between those two - filtering by dates while loading (PQ) vs at the data model and tables. This is going to be a monthly report, so either would work, I suppose. You have a preference?
 
Upvote 0
@Scottsen - I forgot about USERELATIONSHIP()...but the relationship still has to be there, right? (the dotted lines in the data model)
 
Upvote 0
What a question :-)
But I cannot recommend anything to you, it completely depends on what other aspects there are in your solution.

One important thing to consider here: Power Query can only feed Power Pivot and not SSAS tabular directly. So if you intend to transform to tabular - this would not work.

Advantage is that your DAX life might be easier with this approach.

Just have a look at my latest blogpost
 
Upvote 0

Forum statistics

Threads
1,224,115
Messages
6,176,477
Members
452,728
Latest member
mihael546

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top