Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
91 | |
87 | |
80 | |
69 | |
69 |
User | Count |
---|---|
226 | |
129 | |
119 | |
83 | |
77 |