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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

I want the Total/Subtotal percent to be a calculation of the values in the Totals/Subtotal

Im trying to create a forecast accuracy matrix table with multiple slicers to select region/partner/Market by month.

Im able to get the correct formula into the Forecast Accuracy column, but when we get to the total / subtotal rows, the forecast accuracy percentage is either summing / averaging the column.

I want to take the values from the total/subtotal row and apply the formula to obtain the correct percentage.

I've attached an example data set for reference. 

Many 'solutions' Ive found would help me with percentage of total/subtotal, so not been able to make them work.

Any help will be most appreciated.

 

Google Drive Link to PBI Report 

 

image.png

1 ACCEPTED SOLUTION
ToddChitt
Super User
Super User

Looks like your [Forecast Accuracy] is defined as a COLUMN. You should re-write it as a MEASURE. And that measure should be based on SUM Aggregations of the Numerator and Denominator. Oh, and I use the DIVIDE DAX function:

 

Measures:

TOTAL Error = SUM('DUMMY February'[Error])
TOTAL Actual = SUM('DUMMY February'[Actuals])
Forecast Accuracy 3 = 1 - DIVIDE ( [TOTAL Error] , [TOTAL Actual], 0 )

 

I leave it to you to wrap in the negative handling.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





View solution in original post

1 REPLY 1
ToddChitt
Super User
Super User

Looks like your [Forecast Accuracy] is defined as a COLUMN. You should re-write it as a MEASURE. And that measure should be based on SUM Aggregations of the Numerator and Denominator. Oh, and I use the DIVIDE DAX function:

 

Measures:

TOTAL Error = SUM('DUMMY February'[Error])
TOTAL Actual = SUM('DUMMY February'[Actuals])
Forecast Accuracy 3 = 1 - DIVIDE ( [TOTAL Error] , [TOTAL Actual], 0 )

 

I leave it to you to wrap in the negative handling.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.