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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
alexpork
Frequent Visitor

How to filter without affecting running total

Hello! I have a column that has a variety of values. I would like to "filter" out the values that are less than 10,000,000 OR greater than -10,000,000. However, I do not want to affect the total at the bottom. I've noticed that with the filter pane, when I add this as a filter, it also affects the running total :

 

The current DAX code for this column is as follows:

 

Delta = SUM('Query' [2022] - SUM('Query'[2021])

 

Is there any straightforward way to edit this statement to filter based on the criteria above without affecting the total at the bottom?

 

alexpork_0-1625096218856.png

 

For example, what I would like to show are these values in a table format. Instead of the 149,702,494 total, I would like to show the 198,450,703 in the picture above:

 

alexpork_0-1625096531860.png

 

 

2 REPLIES 2
wdx223_Daniel
Super User
Super User

Delta = VAR _total=SUM('Query' [2022] - SUM('Query'[2021]) RETURN IF(_total>10000000||_total<-10000000,_total)

Hello! Thank you for the response.

I tried running this statement but it is mentioning in the RETURN IF statement that the parameter is not in the correct type.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.