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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.