Forum Discussion
Koushikrish
4 years agoHelper I
DAX TOP N Measure on a Matrix Issue
Hello, I have a requirement to display TOP 10 States on a Volume measure across a matrix visual. I have used the TOP N DAX Measure to achieve this : CALCULATE([Volume], TOPN(10, ALL(dimGeograp...
- Anonymous4 years ago
Koushikrish glad it worked!
To also remove the filter from Brand, this below might work (I've not tested this)
CALCULATE( [Volume], TOPN(10, ALL(dimGeography[State_Code], dimGeography[RegionName]), CALCULATE([Volume], ALL('dimBrand'[BrandName])) DESC ), VALUES(dimGeography[State_Code]) )
Anonymous
4 years agoNot applicable
Koushikrish glad it worked!
To also remove the filter from Brand, this below might work (I've not tested this)
CALCULATE(
[Volume],
TOPN(10,
ALL(dimGeography[State_Code], dimGeography[RegionName]),
CALCULATE([Volume], ALL('dimBrand'[BrandName]))
DESC
),
VALUES(dimGeography[State_Code])
)
Koushikrish
4 years agoHelper I
Anonymous : that worked great as well. Got the result as I desired for exactly! Thanks a lot for your help on this!! 😊