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
mwaall
Frequent Visitor

Sub-total per year in matrix with measures

Hi, 

 

I am tracking the progress of a project schedule, and have created measure to calculate and plot the budgeted, actual and late progress. A baseline was performed in December 2022, therefore the columns for budgeted and late this year is blank, but they still sum up nicely at the top of the 2022 row.
My question is how to have the actual column to sum up for 2023?
Below are the measures, I have tried adding an [ResultIfFalse] = "" or 0 or ISBLANK(), but the subtotal still doesn't show up. 

 

Any help is appreciated!  

mwaall_0-1677762930456.png

 

Pct_Actual =
VAR Cum_Actual = CALCULATE(SUM(Progress_All[Value]), FILTER(ALLSELECTED(Progress_All), Progress_All[Month End]<=MAX(Progress_All[Month End])), Progress_All[Spreadsheet Field]="Actual Cost")
VAR Total_Budget = CALCULATE(SUM(Progress_All[Value]),FILTER(ALLSELECTED(Progress_All),Progress_All[Spreadsheet Field]="Budgeted Cost"))
VAR Last_Date_Actual = MAX('Resources Actual'[Month End])
VAR Pct_Act = IF(Last_Date_Actual>=MAX(Progress_All[Month End]),Cum_Actual/Total_Budget)
return
Pct_Act
Pct_Budgeted =
VAR Cum_Budget = CALCULATE(SUM(Progress_All[Value]), FILTER(ALLSELECTED(Progress_All), Progress_All[Month End]<=MAX(Progress_All[Month End])), Progress_All[Spreadsheet Field]="Budgeted Cost")
VAR Total_Budget = CALCULATE(SUM(Progress_All[Value]),FILTER(ALLSELECTED(Progress_All),Progress_All[Spreadsheet Field]="Budgeted Cost"))
VAR Last_Date_Actual = MAX('Resources Actual'[Month End])
VAR Pct_Bud = IF(DATE(2022,12,29)<=MAX(Progress_All[Month End]),Cum_Budget/Total_Budget)

return
Pct_Bud
 
Pct_Late =
VAR Cum_Late = CALCULATE(SUM(Progress_All[Value]), FILTER(ALLSELECTED(Progress_All), Progress_All[Month End]<=MAX(Progress_All[Month End])), Progress_All[Spreadsheet Field]="Remaining Late Cost")

VAR Total_Budget = CALCULATE(SUM(Progress_All[Value]),FILTER(ALLSELECTED(Progress_All),Progress_All[Spreadsheet Field]="Budgeted Cost"))

VAR Pct_Late = IF(DATE(2022,12,29)<=MAX(Progress_All[Month End]),Cum_Late/Total_Budget)
return
Pct_Late

 

2 REPLIES 2
mwaall
Frequent Visitor

Hi @Anonymous , 

I am not able to attach any files (and I've tried the option of using links to Dropbox/Drive etc. with a colleauge, it's unfortunately not working). 
Is there any other way I can share the sample file with you? 

Best regards,
Marte Wållgren

Anonymous
Not applicable

Hi  @mwaall ,

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

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.

Top Solution Authors