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! Request now

Reply
elcabansh
Frequent Visitor

get the cumulative on activity and date level

greeting 

 

this dax works great to get the cumulative for the previous days and as per the line chart.

but in the matrix, it does not work right for the task, it didn't consider the cumulative for each task.

issue.PNG

 

the power bi file 

https://drive.google.com/file/d/1fseiBx1NiTKKE8MsYLUVSMrM4CkgWzYF/view?usp=sharing

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable


@elcabansh 

I do not see any problem with @amitchandak's suggestion.

 

CUM PLANNED/DAY =
CALCULATE(SUMX(FILTER(ALL('PRI-TASK(baseline)'),'PRI-TASK(baseline)'[days]<=MAX('PRI-TASK(baseline)'[days])&& [TASK_NAME]=MAX([TASK_NAME])),'PRI-TASK(baseline)'[*PLANNED/DAY]))
cumulative montyear.PNG
You used [days] as the running total context, if you change the [monthyear] to [days] you will see the cumulative value but the table will be overly long to have each day displayed on the columns. So I am not sure about your needs, If that is not what you are looking for, please share your expected output. 
 
 
Paul Zheng _ Community Support Team

View solution in original post

3 REPLIES 3
Anonymous
Not applicable


@elcabansh 

I do not see any problem with @amitchandak's suggestion.

 

CUM PLANNED/DAY =
CALCULATE(SUMX(FILTER(ALL('PRI-TASK(baseline)'),'PRI-TASK(baseline)'[days]<=MAX('PRI-TASK(baseline)'[days])&& [TASK_NAME]=MAX([TASK_NAME])),'PRI-TASK(baseline)'[*PLANNED/DAY]))
cumulative montyear.PNG
You used [days] as the running total context, if you change the [monthyear] to [days] you will see the cumulative value but the table will be overly long to have each day displayed on the columns. So I am not sure about your needs, If that is not what you are looking for, please share your expected output. 
 
 
Paul Zheng _ Community Support Team
elcabansh
Frequent Visitor

thanks for your reply, but unfortunately it doesn't work .

the power bi file in this link 

https://drive.google.com/file/d/1fseiBx1NiTKKE8MsYLUVSMrM4CkgWzYF/view?usp=sharing

 

amitchandak
Super User
Super User

@elcabansh , If you want cumulative at task level

add to filter

&& Task[Task_name] = Max(Task[Task_name])

Rest keep as is

 

or

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors