Forum Discussion

_chris_'s avatar
_chris_
Icon for Helper III rankHelper III
6 years ago
Solved

RANKX Measure always 1

Hi,   this question probably was asked many times  but still I do not get it:   There is a table having ~200.000 lines.   Relevant columns are Date, Customer, Revenue (=Umsatz) etc.   Now I w...
  • Anonymous's avatar
    Anonymous
    6 years ago

    _chris_ 
    There are some differences of using RANKX() in a calculated column and a measure.

     

    Calculated Column:

     

    Column = RANKX('vbasFASTEC_WaWiVKBelegpositionen',[Umsatz],,DESC,Dense)

     

    Measure:

     

    Measure = RANKX(ALL('vbasFASTEC_WaWiVKBelegpositionen'),CALCULATE(SUM([Umsatz])),,DESC,Dense)

     

     

    Paul Zheng _ Community Support Team
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.