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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors