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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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?

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.