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 All,
Please someone advice how to get the total for Max column (using with Switch function)
Backup calculation is given below
Hi @Nagesh20
Here are some aspects that I suggest can be considered.
1. Ensure Relationships: Make sure that there is a relationship between 'Table1[Date]'and 'Calender[Date]' if they are meant to interact. Without a proper relationship, date comparisons and aggregations might not behave as expected.
2. Refined Max Calculation:
Max =
VAR _maxDateForProduct = CALCULATE(
MAX(Table1[Date]),
ALLSELECTED(Table1)
)
RETURN
SWITCH(
TRUE(),
MAX(Calender[Date]) = _maxDateForProduct, [Cumulative],
MAX(Calender[Date]) < _maxDateForProduct, 0,
BLANK()
)
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
81 | |
80 | |
71 | |
70 | |
54 |
User | Count |
---|---|
107 | |
99 | |
88 | |
79 | |
67 |