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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
NourJ
Helper III
Helper III

Calculate Cumulative by applying multiple factors

Hi Community,

I want to calculate cumulative by applying multiple factors not only date.
the following measure works well when I filter by date but when I filter by location or cause it is not.

New_Arrival_Cumulative =
 CALCULATE (
   cumulative_new_arrival[New_Arrivals],
    Filter(ALLEXCEPT('cumulative_new_arrival',cumulative_new_arrival[District],cumulative_new_arrival[Cause of Displacement]),
    'cumulative_new_arrival'[Week of the Year] <= Max ('cumulative_new_arrival'[Week of the Year])
))
I appreciate any suggestions or solution provided.
3 REPLIES 3
Anonymous
Not applicable

Hi @NourJ 

 

Can you please show some sample data and the corresponding expected result? Your current measure keeps the filters on "District" and "Cause of Displacement" columns. Are you hoping to filter data on these two columns or on other columns?

 

Best Regards,
Jing

Daniel29195
Super User
Super User

Hello @NourJ 

 

try this : 

 CALCULATE (
   cumulative_new_arrival[New_Arrivals],
    ALLEXCEPT(
'cumulative_new_arrival',
cumulative_new_arrival[District],
cumulative_new_arrival[Cause of Displacement]
),
    'cumulative_new_arrival'[Week of the Year] <= Max ('cumulative_new_arrival'[Week of the Year])
))

 

 

if it doesn work : 

try this version : 

 CALCULATE (
   cumulative_new_arrival[New_Arrivals],
    removefilters ( 'cumulative_new_arrival'[Week of the Year] )
),
    'cumulative_new_arrival'[Week of the Year] <= Max ('cumulative_new_arrival'[Week of the Year])
))
 
 
let me know if it works for you .
 
 
If my response has successfully addressed your issue kindly consider marking it as the accepted solution! This will help others find it quickly. Dont forget to hit that  thumbs up button 🫡👍

I tried both first works for date but not for other filters and the second one works when I filter by location but not by date

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.