Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
76 | |
63 | |
51 | |
48 |
User | Count |
---|---|
211 | |
86 | |
64 | |
59 | |
56 |