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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

matrix report

I have a matrix report with products on the rows, location on the columns and actual sales as the values

the above is simple to create in power bi

 

what my challenge is, the user then asked to display the forecast amounts at the end and bottom of the matrix.

 so the user is just seeing total forecast amount for product a and the total forecast amount for location 1 and not the detailed

forecast amount for location1/product a

 

below is a sample of what the report needs to look like.

 

donm_0-1651747888451.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

The visual construct in the screenshot in the screenshot with the result you want should be a matrix, and as far as I know, Power BI requires us to add the specified value (like forecast) to the matrix value field before it will generate a subtotal for that specified value. So if we need matrix show subtotal for forecast and actual, we need to add both of them into value field.

 

According to your statement, the user want is to show forecast subtotal for product right beside the actual subtotal and show forecast subtotal for location below the actual subtotal. I think this is impossible. Due to if Power BI show forecast subtotal for product right beside the actual total, you may create a matrix as my above reply. We can see that we will add forecast and actual in value field. They should be in same level. In matrix values above and below should be in different hierachy levels. This is contradictory to the above.

 

So Power BI will show forecast subtotal for location right beside the actual subtotal as well.

 

Best Regards,
Rico Zhou

 

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

I think forecast should be a column in your data model, if your table looks like as below, you couldn't get result as you want. Autual sales and forecast sales should be in same level. So we couldn't show forecast sales total under actual sales total.

RicoZhou_0-1652078961008.png

I suggest you to create a matrix as below.

RicoZhou_2-1652079421633.png

 

Best Regards,
Rico Zhou

 

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

 

Anonymous
Not applicable

thanks rico.  your solution is not really what the user asked for.  he doesn't want to see the forecast amount by location.  he want actual by location , and then the total for actuals and to the right of this total the total for forecast.

 

so one column of forecast at the end of the matrix and a total of forecast as a row at the bottom of the matrix.

Anonymous
Not applicable

Hi @Anonymous ,

 

The visual construct in the screenshot in the screenshot with the result you want should be a matrix, and as far as I know, Power BI requires us to add the specified value (like forecast) to the matrix value field before it will generate a subtotal for that specified value. So if we need matrix show subtotal for forecast and actual, we need to add both of them into value field.

 

According to your statement, the user want is to show forecast subtotal for product right beside the actual subtotal and show forecast subtotal for location below the actual subtotal. I think this is impossible. Due to if Power BI show forecast subtotal for product right beside the actual total, you may create a matrix as my above reply. We can see that we will add forecast and actual in value field. They should be in same level. In matrix values above and below should be in different hierachy levels. This is contradictory to the above.

 

So Power BI will show forecast subtotal for location right beside the actual subtotal as well.

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

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.