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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.