Forum Discussion
LeaRupnik
Helper III
4 years agoTop 10 on values
Hello,
I have to make a hierarchical table of the top 10 customers by the amount of im margin.
I know how to limit the quantity, the problem is that it does not limit it for all organizations, how ...
LeaRupnik
Helper III
4 years agoi don't want without a top 10 column
SpartaBI
Community Champion
4 years agoLeaRupnik try this:
Only write this measure:
Količina =
VAR _max = MAXX(ALLSELECTED('nov_27'), nov_27[datum_posnetka])
VAR _result =
CALCULATE (
SUM (nov_27[izdkol] ),
nov_27[datum_posnetka] = _max
)
VAR _rank =
RANKX(
ALLSELECTED(nov_27[kupec]),
CALCULATE (
SUM (nov_27[izdkol] ),
nov_27[datum_posnetka] = _max
)
,_result
,DESC
)
RETURN
IF( _rank <= 10, _result, BLANK() )
No need for the visual level filter: