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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
CHAMBERS
Regular Visitor

Can anyone help me build a table with different totals rows for gross and net

Hello

 

I have a table with 3 columns, one for area, one for cost and the last which shows if the amount is income or expenditure.  I want to be able to create a table that shows the area and cost but have 3 different totals rows for Gross expenditure, gross income and net expenditure.  

 

I also want to be able to filter this table by area and have the totals amounts change.  Everything I have tried so far such as union and add rows gives me the totals rows i want but they do not filter when I only select certain areas

 

Any help would be much appreciated!!

5 REPLIES 5
Anonymous
Not applicable

Hi  @CHAMBERS ,

Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!

 

 

Best Regards

Yilong Zhou

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

DataInsights
Super User
Super User

@CHAMBERS,

 

You could create a table like the one below:

 

DataInsights_0-1729001194389.png

 

Example measures:

 

Cost =
SUM ( 'Table'[Cost] )
Gross Expenditure =
CALCULATE ( [Cost], 'Table'[Cost Type] = "Expenditure" )
Gross Income =
CALCULATE ( [Cost], 'Table'[Cost Type] = "Income" )

 

Net Expenditure is the sum of all Cost Type, so you could use the base measure Cost or create a separate measure.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




What I'm after is something that looks like this (imagine there are a list of different areas under business area).  I need the different totals to appear as rows in the same table.  At the moment, this is 3 tables layered on top  of each other which would be fine if the number of business areas stayed the same but i need to be able to filter on business area and have the totals filter too

 

CHAMBERS_0-1729002746609.png

 

@CHAMBERS,

 

See if you can adapt the solution below:

 

https://community.fabric.microsoft.com/t5/Desktop/Building-a-P-amp-L-matrix-with-calculated-lines-da... 

 

EBITDA would be Net Expenditure in your example. You can specify the position of total rows in the matrix visual.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Clarification:

 

If you make Expenditure amounts negative, then Net Expenditure is the sum of all Cost Type. If all amounts are positive, you could create a measure like this:

 

Net Expenditure =
[Gross Income] - [Gross Expenditure]

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.