Forum Discussion

ING_BT's avatar
ING_BT
Helper I
4 years ago
Solved

Is this Dynamic Value segmentation?

Hello !    I am facing an issue, I'm sure the solution is simple, but lacking the knowledge I'm struggling to find the right way to do it.    Here's the setup:  I have a table with a list of "Ke...
  • MFelix's avatar
    4 years ago

    Hi ING_BT ,

     

    Based on the description you have you need to  do a measure similar to this one:

    Count Words on ranking = 
        VAR temptable =
            SUMMARIZE (
                words,
                Words[Brand],
                Words[Keyword],
                "AVerageRanking", AVERAGE ( Words[Rank] )
            )
        RETURN
            COUNTROWS (
                FILTER (
                    temptable,
                    [AVerageRanking] <= MAX ( Ranking[End] )
                        && [AVerageRanking] >= MIN ( Ranking[Start] )
                )
            )

     

    I have added some words counts on the Brand A and has you can see the total word count is 2 always:

     

    Be aware that  this calculation is at a brand level if your try to do it with all brands at all ranking the calculation is incorrect has you can see in the Total column below