Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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]/Sum('Raw Data'[Impressions])

 

When I add it to the column, it is not rolling those %'s by the Page Filter (which would be months) so would the answer be adding a filter to the column formula? 

 

I have tried messing around with it but can't get the right combo any suggestions?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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

)

 

 

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

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

)

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.