As soon as you start developing a few Power BI models, you’ll very likely run into this problem … You have two dates in your fact table (your transaction table) and you can’t place two relationships between your date table and the other table.
You might even have multiple dates, like entered date, ordered date, invoiced date, shipped date and potentially others. You might think that there is a problem with Power BI, or that you need a brand new date table.
You don’t actually need another table, nor do you need to worry.
The key thing to realise is that you can have multiple relationships between tables – you just can’t have more than one ‘active’ relationship. You can have lots of ‘inactive’ relationships. The trick with inactive relationships is that you can turn them ‘on’ by using the right DAX formula.
There’s a little bit to it, but once you get your head around this you can build some very effective Power BI data models.
In this video, I also run through the CALCULATE function and the USERELATIONSHIP function – both really important functions in the DAX formula language, so well worth learning.
By using these techniques, you’ll have the ability to quickly filter your data by any of these dates, and you open out a range of analysis that traditionally (with Excel) would have been very time-consuming to create.
Check out the video to learn much more.