Forum Discussion

AnnaMagnusson's avatar
4 years ago
Solved

Rank on two tables visuals

Hi!   What I want to do is: If the ParameterName in Table 1 have the rank of 1, then I want the ParameterName in Table 2 to be shown first/on top (even if that ParameterName doesn't have rank 1, o...
  • AnnaMagnusson's avatar
    AnnaMagnusson
    4 years ago

    Hi!

     

    Sorry for not answering. 


    I think the problem is fixed. Your solution was in the right direction with using switch. Since I only had measures and only one column (parameters) I couldn't use isinscope or isfiltered (what I could understand).

     

    What I ended up using was:

    RankCompare = SWITCH( TRUE(),
    [Rank F] = 1, "1",
    [Rank F] = 2, "2",
    [Rank F] = 3, "3",
    [Rank F] = 4, "4",
    [Rank F] = 5, "5")

     

    where [Rank F] = if( isblank(measure), blank(), rankx ( all( table [column]) , measure, , , dense)) is from the ranking on the first table visual and then I just sorted the second table visual on RankCompare.

     

    So thanks for the help!