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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Wcys02
Frequent Visitor

Matrix Subtotal Adding up matrix rows

Hi, 

How does one subtotal a forecasted data and actual data in a matrix? Currently the subtotal auto calculated by powerbi is only showing actual figures for Jan-June but not including forecasted figures for July.

 

I'm using to the following logic to get powerbi to choose between forecasted and actual data:

 

Actual/Fc = IF(SUM('Table 1 -Actual'[Value])=0,SUM('Table 2 - Forecasted'[Value]), SUM('Table 1 - Actual'[Value]))

 

IMG-20230721-WA0014.jpg

 thanks in advance 

2 REPLIES 2
olgad
Super User
Super User

Hi, change totals using if(hasonevalue(name of the month column), IF(SUM('Table 1 -Actual'[Value])=0,SUM('Table 2 - Forecasted'[Value]))+SUM('Table 1 - Actual'[Value]), IF(SUM('Table 1 -Actual'[Value])=0,SUM('Table 2 - Forecasted'[Value]), SUM('Table 1 - Actual'[Value])))


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime
Wcys02
Frequent Visitor

Hi, sry I was not clear, the total column is using the subtotal settings in Powerbi.

Link to sample file: https://we.tl/t-01SBV27ftn

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.