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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Gianluca_Colett
Frequent Visitor

Add a total row after two rows of a matrix

Hello,
I would like to be able to add a row after the two rows named 'Ricavi' and 'Costi Esterni Diretti' that sums the values of the latter (a subtotal). How is it possible to do this? I have been trying for quite some time without succeeding. Considering that the field 'Voci LV 1' is part of a table related to another to take the value of the field 'Importo'.
Thanks to those who will help me!

Gianluca_Colett_0-1721125453154.png

 

Gianluca_Colett_1-1721126650421.png

 

 

4 REPLIES 4
amitchandak
Super User
Super User

@Gianluca_Colett , You need to have those as additional values in the dimension table or extended dimension table

 

Refer blog: https://medium.com/microsoft-power-bi/power-bi-formatted-p-l-with-custom-sub-totals-and-blank-rows-e...

 

Power BI How to get the P&L formatting right: https://youtu.be/C9K8uVfthUU
Power BI How to get two columns format Profit and Loss Statement(P&L) right: https://youtu.be/WLg85yiMgHI

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Isn't it possible to do such a thing without going to Excel to edit the table? But to do everything in Power BI in an easier way?

Anonymous
Not applicable

Hi @Gianluca_Colett ,

 

For this case, it is more recommended that you use visual objects such as cards. Because you can't just add data for these two rows in the matrix, in which case the other rows will also be involved in the calculation.

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

Yes with the cards I can display the desired values, but I would like some trick to be able to handle the subtotals, without having to go through Excel, since I get the data via an import from a SQL server.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.