Forum Discussion
Dax
- 1 year ago
Hi govind_021,
Thank you for reaching out to the Microsoft fabric community forum. Thank you @ for your input on this issue.
After thoroughly reviewing the details you providedDax Measure:
Check = SWITCH( TRUE(), ISINSCOPE('Date'[QuarterInCalendar]), CALCULATE([Total Sales], REMOVEFILTERS('Date'[QuarterInCalendar])), ISINSCOPE('Date'[Year]), CALCULATE([Total Sales], REMOVEFILTERS('Date'[Year])), ISINSCOPE('Product'[Category]), CALCULATE([Total Sales], REMOVEFILTERS('Product'[Category])), [Total Sales] )Output:
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you.
Hi pankajnamekar25
your solution is not working at all.
i have given the link for file , can you please try from your end and see if it works.
Hi govind_021,
Thank you for reaching out to the Microsoft fabric community forum. Thank you @ for your input on this issue.
After thoroughly reviewing the details you provided
Dax Measure:
Check =
SWITCH(
TRUE(),
ISINSCOPE('Date'[QuarterInCalendar]),
CALCULATE([Total Sales], REMOVEFILTERS('Date'[QuarterInCalendar])),
ISINSCOPE('Date'[Year]),
CALCULATE([Total Sales], REMOVEFILTERS('Date'[Year])),
ISINSCOPE('Product'[Category]),
CALCULATE([Total Sales], REMOVEFILTERS('Product'[Category])),
[Total Sales]
)
Output:
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you.