Forum Discussion

qjc171819's avatar
qjc171819
Frequent Visitor
9 years ago
Solved

Top 80% Engagement

Hi guys, I have a table with Item ID and Engagement. Now i would like to create another table that shows which items that make up 80% of total engagements, also these items should desc by engagement...
  • vanessafvg's avatar
    9 years ago

    ive never done this before but maybe this will work

     

    qjc171819

     

    engagementmeasure = sum(engagment)

     

    incrementalengagement =
    VAR CurrentEngagement = Table[engagementmeasure]
    RETURN
        SUMX (
            FILTER ( table, table[engagementmeasure] >= incrementalengagement ),
            table[enagementmeasure]
        )

     

    Table[IncrementPCT] = 

    DIVIDE (table[incrementalengagement], 

    sum (engagementmeasure))

     

     

    then based on that result theoretically you can create a table where the Table[IncrementPCT] <= 0.8