Forum Discussion
Calculated column that excludes topN value from a column within the same table
- Anonymous3 years ago
Hi 10168 ,
You can create a measure like:Measure = var _max = CALCULATE(MAX('Calendar'[Fiscal Month Key]),ALL('Calendar')) var _result = IF(MAX('Calendar'[Fiscal Month Key])=_max,1) return _resultIf you need to keep the external filter, you can replace ALL with ALLSELECTED.
Then set the visual level filter and bookmark:
With the bookmark button, you can freely switch back and forth.
Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi 10168 ,
You can create a measure like:
Measure =
var _max = CALCULATE(MAX('Calendar'[Fiscal Month Key]),ALL('Calendar'))
var _result = IF(MAX('Calendar'[Fiscal Month Key])=_max,1)
return
_result
If you need to keep the external filter, you can replace ALL with ALLSELECTED.
Then set the visual level filter and bookmark:
With the bookmark button, you can freely switch back and forth.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data