Forum Discussion

rpinxt's avatar
rpinxt
Icon for Solution Sage rankSolution Sage
4 years ago
Solved

Field Parameters and TopN not working

I have a (simple) matrix in which I use Field Parameters to toggle between 2 views. On both views I want to show only the TopN (say 5) lines. As you see this is not working as I have more the...
  • rpinxt's avatar
    4 years ago

    Ok was able to fix it with (for me in this case) a TopN slider and Parameter field.

    Had 2 fields, so made 2 ranking fields and combined with the ranking slider I made, made this rankfilter.

    RankFilter = IF(
        [Rank] <= RankSlider[RankSlider Value] && [Rank2] <= RankSlider[RankSlider Value] ,
        1,
        0
    )
     
    So for the visual put that one in the filter and now it works like a charm.
    Whatever breakdown from the field parameter I choose rank or rank2 will be active and for both I will get my TopN.