Forum Discussion

SeGr's avatar
SeGr
Helper I
3 years ago
Solved

using field parameters as a value in TopN

Hi team,   I am using Field Parameters to switch between measures in a stacked chart. One requirement that I have is to calculate TopN. My issue is that the field parameters cannot be used as a v...
  • SeGr's avatar
    3 years ago

    I was able to accomplish this by using

    switch

        (selectedvalue (measure parameter order),

        0, [ measure 1 ],

        1, [ measure 2 ], 

        etc

    )