Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I need a dax code for Calculation Group that can Remove existing relationship from a measure.
my Measure that has an existing relationship has USERELATIONSHIP function and I cannot remove that relationship through my Calculation Group.
My fact table has two date fields: OrderDate & ShipmentDate;
- OrderDate has an active relationship with tblCalendar1 and inactive relationship with tblCalendar2, in order to compare [Sales] for two different dates;
Dax for measures:
- ShipmentDate has an inactive relationship with tblCalendar1 and tblCalendar2, so I could swith [Sales] measure to [Sales (by ShipmentDate)] in Calculation Groups.
I think the problem is here in ALL.
Code above for Calculation Group:
What was your reason for having two calendar tables?
For comparison of two custom dates, eg March 1-3 vs March 4-6
Make both of them disconnected (inactivate the relationships) and use measures and TREATAS to find the data to compare.
User | Count |
---|---|
102 | |
91 | |
87 | |
79 | |
71 |
User | Count |
---|---|
113 | |
105 | |
101 | |
75 | |
64 |