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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.