Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All,
I have a table which has a createdate and deliverydate. I want to connect both of these to a date table. I am able to connect mt createdate but when i try to create a relationship between deliverdate and datetabel it shows the following message
Thanks
Hi @Anonymous ,
You can create an active relationship between createdate and date in datetable and an inactive relationship between deliverdate and date in datetable. Use USERELATIONSHIP function when you need the relationship between deliverdate and date in datetable. For more details, please refer to https://docs.microsoft.com/en-us/dax/userelationship-function-dax
Or you can use TREATAS function without create inactive relationship between deliverdate and date in datetable. It can apply filter from unrelated table. For more details, please refer to https://docs.microsoft.com/en-us/dax/treatas-function
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Option 1 - Try to set relationship direction to Single
Option 2 - Create summarized table with deliver date and build relationship with that table from your master table
@Anonymous Since you can have only active relationship between two tables, your second relationship will be inactive. However, you can still use inactive relationship in your measures.
Orders Shipped = CALCULATE( sum(Sales) ,USERELATIONSHIP('Date'[CreateDate], Sales[DeliveryDate]) )
refer to below link for more details.
https://docs.microsoft.com/en-us/power-bi/guidance/relationships-active-inactive
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
61 | |
61 | |
55 | |
38 | |
27 |
User | Count |
---|---|
85 | |
60 | |
45 | |
41 | |
39 |