Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Filter Formula by Date

I created a Table and displayed to top 15 by impressions   Since using grand % total would give me the % based off those top 15 only, I created a calculated column   % = 'Raw Data'[Impressions]/S...
  • Anonymous's avatar
    Anonymous
    8 years ago

    So what I was going for was

     

    postImpressions
    1749479
    2749494
    3749509
    4749524
    5749539
    6749554
    7749569
    8749584
    9749599
    10749614

     

     

    When you apply a Advanced filter to show lets say top 5, when you do a % of grand total it would normally take the result from that top 5.

     

    I wanted to show only the top 5 BUT have the % total take from the 10 rows and be able to show it for a paticular month. 

     

    I actually figured it out and took a different route.

     

    % of grand total= DIVIDE (

        SUM ( 'Raw Data'[Impressions] ),

        CALCULATE (

            SUM ( 'Raw Data'[Impressions] ),

            ALLSELECTED ( 'Raw Data'[Channel Title] ),

            ALLEXCEPT ( 'Raw Data','Raw Data'[month_year] )

        ),

        0

    )