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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Feature that updates calculation based items removed from filter or slicer

I'm looking for a feature in one of my reports and I wanted to check if this was readily available in Power Bi or if it is a way I'm using dax calculation or a slicer.

 

I have at table of order incoming at different dates and a column with the sum of those orders accumulating as they arrive. Exampled below.

 

OrderItemETAAmountTotal at Arrival 
A1AA1/31010
A2AA1/62535
A3AA1/93368

 

Currently im using the DAX: 

 

 

Total on Arrival = 
var maxdate =MAX(table[ETA])
var mindate = TODAY()
return CALCULATE(SUMx(table,table[Amount]),table[ETA] >= mindate, table[ETA] <=maxdate,ALL(table[Order]))

 

 

 

What I would like is a slicer or a feature where I could filter the order and the total on arrival would adjust based on the filtered value. 

 

If I filter order A2, the table would look like this:

OrderItemETAAmountTotal at Arrival 
A1AA1/32525
A3AA1/93358

 

If I filter order A3, the table would look like this:

OrderItemETAAmountTotal at Arrival 
A2AA1/62510
A3AA1/93343

 

Currently when I use the slicer on Order, the calculation doesn't update. 

 

1 ACCEPTED SOLUTION

@Anonymous 

It shouldn't make any difference. 
Probably the the following would work 

Total on Arrival =
VAR maxdate =
MAX ( table[ETA] )
VAR mindate =
TODAY ()
VAR ETAs =
CALCULATETABLE ( VALUES ( table[ETA] ), ALLSELECTED () )
RETURN
CALCULATE (
SUMX ( table, table[Amount] ),
FILTER ( ETAs, table[ETA] >= mindate && table[ETA] <= maxdate ),
ALL ( table[Order] )
)

View solution in original post

5 REPLIES 5
tamerj1
Super User
Super User

Hi @Anonymous 

please try

Total on Arrival =
VAR maxdate =
MAX ( table[ETA] )
VAR mindate =
TODAY ()
RETURN
CALCULATE (
SUMX ( table, table[Amount] ),
FILTER (
ALLSELECTED ( table[ETA] ),
table[ETA] >= mindate
&& table[ETA] <= maxdate
),
ALL ( table[Order] )
)

Anonymous
Not applicable

This didn't work for my table, should I be using a slicer to filter out the item or filter using the visual filter?

@Anonymous 

It shouldn't make any difference. 
Probably the the following would work 

Total on Arrival =
VAR maxdate =
MAX ( table[ETA] )
VAR mindate =
TODAY ()
VAR ETAs =
CALCULATETABLE ( VALUES ( table[ETA] ), ALLSELECTED () )
RETURN
CALCULATE (
SUMX ( table, table[Amount] ),
FILTER ( ETAs, table[ETA] >= mindate && table[ETA] <= maxdate ),
ALL ( table[Order] )
)

Anonymous
Not applicable

This worked! thank you for your help!

Anonymous
Not applicable

Messed up the tables above

 

*If I filter order A2, the table would look like this:

OrderItemETAAmountTotal at Arrival 
A1AA1/31010
A3AA1/93343

 

If I filter order A1, the table would look like this:

OrderItemETAAmountTotal at Arrival 
A2AA1/62525
A3AA1/93358

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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