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
hejszyszky
Helper II
Helper II

Cumulative total with exlucsion

2021-12-22_10h23_45.png

Hi, im having calculation which looks like above.

 
I'd like to exclude Period 0 calculation in column 4. So my desired output looks like below (ive tried with &&Period<>0 but it does not work):

 

Could someone help? Thanks in advance!

1 ACCEPTED SOLUTION

@hejszyszky , Try like

 

Risk M vs M-1 Cumm = if( not(isblank(IAR_Final_Database[Risk M])) && HASONEVALUE(Periods[Period]), CALCULATE(sumx(values(Periods[Period]),[Risk M vs M-1]), filter(ALLSELECTED(Periods), Periods[Period] <= max(Periods[Period]) )) -CALCULATE([Risk M vs M-1],Periods[Period]=0) , BLANK())
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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@hejszyszky , Check if these two measures can help

 

Risk M Cumm = if( not(isblank(IAR_Final_Database[Risk M-1])), CALCULATE(SUM('IAR_Final_Database'[Finance Risk]), filter(ALLSELECTED(Periods), Periods[Period] <= max(Periods[Period]) -1)), BLANK())

Risk M Cumm 1 = if( not(isblank(IAR_Final_Database[Risk M])), CALCULATE(SUM('IAR_Final_Database'[Finance Risk]), filter(ALLSELECTED(Periods), Periods[Period] <= max(Periods[Period]) )), BLANK())
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

Hi @amitchandak , its definetly closer. But still does not match desirred output.

2021-12-22_10h47_35.png

 

Where desired output is :

2021-12-21_12h52_06.png

 

 

@hejszyszky , Try like

 

Risk M vs M-1 Cumm = if( not(isblank(IAR_Final_Database[Risk M])) && HASONEVALUE(Periods[Period]), CALCULATE(sumx(values(Periods[Period]),[Risk M vs M-1]), filter(ALLSELECTED(Periods), Periods[Period] <= max(Periods[Period]) )) -CALCULATE([Risk M vs M-1],Periods[Period]=0) , BLANK())
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