Forum Discussion
Using two different relationships between the same two tables in the same measure - how?
- 1 year ago
Hi D_PBI, you can use USERELATIONSHIP -> https://learn.microsoft.com/en-us/dax/userelationship-function-dax
CALCULATETABLE( agreement, dimDate[Date] >= [Start Date] && dimDate[Date] <= [End Date], -- Filters ExecutionDate USERELATIONSHIP(dimDate[Date], agreement[ReceivedDate]) -- Filters ReceivedDate )If I answered your question, please mark it as Solution
- 1 year ago
Hello D_PBI
Check out this guide on managing multiple date relationships in Power BI.
FilteredTable =
CALCULATETABLE(
'Agreement',
USERELATIONSHIP(dimDate[Date], Agreement[ReceivedDate]),
Agreement[ExecutionDate] >= [MinDate],
Agreement[ExecutionDate] <= [MaxDate]
)Regards,
Ritesh
Community Champion
Please mark the answer if helpful so that it can help others
Hi D_PBI,
Thank you for reaching out in Microsoft Community Forum.
Thank you ribisht17 , MattiaFratello for the helpful response.
As suggested by ribishi17,MattiaFratello., I hope this information was helpful. Please let me know if you have any further questions or you'd like to discuss this further. If this answers your question, please "Accept as Solution" and give it a 'Kudos' so others can find it easily.
Please continue using Microsoft community forum.
Regards,
Pavan.