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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
masplin
Impactful Individual
Impactful Individual

How to display management accounts with correct subtotals

igse for posting this again, but I got an answer that i acepted as a solution, but turned out the solution was wrong and had exactly the same problem I experienced. Hopnig someone else might know how to solve it

 

Was reading this post about how to get acconting data to dispaly correctly in powerpivot drill-income-statement-design but can't get it working in Power BI as doesn't show any of the entries fror EBITDA etc only the ones that are the sum of some defined rows e.g. 

Total Marketing = CALCULATE([Total Actual],Budget_L1[Budget L1]="Marketing")

whereas EBITDA is defined as

 

EBITDA = [Total GP test]+[Total Staff Costs]+[Total Marketing]+[Total Overheads]

where each component has same form as the Marketing one

 

So is there some limitation in PBI that the SWITCH function doesn't work the same?  

 

Is there some other way to show a matrix that includes both regualr pivottable like sums and also calcuated measures?  The article seemed to be the answer , but can't work out why it doesn't work!!!

 

Thanks for any advice or alternative suggestions

 

I have since tried the following tests

 

For what its worth I have tried a few experiments in Power BI as this is really frustrating.

I set up my Header table like this

 

Budget L1 IDBudget L1SummaryShow Detail

1Revenue1 
2Marketing1 
3Total Staff Costs11
4Fixed Overheads11
5Variable Overheads11
6Total Overheads1 
7EBITDA1 
8Depreciation & Amortisation11
9Net Contribution1 
10Exceptional11
11Net Profit1 
16Balance Sheet1 

 

My IsSubtotal measure is

IS Subtotal Act =
IF (
COUNTROWS ( VALUES ( Budget_L1[Budget L1] ) ) = 1,
SWITCH (
VALUES ( Budget_L1[Budget L1 ID] ),
1, [Total GP test],
2, [Total Marketing],
3, [Total Staff Costs],
4, [Total Fixed Overheads],
5, [Total Variable Overheads],
6, [Total Overheads],
7, [EBITDA],
8, [Total Depreciation & Amortisation],
9, [Net Contribution],
10, [Total Exceptionals],
11, [Net Profit],
BLANK ()
),
100
)

where Total Fixed Overheads = CALCULATE([Total Actual],Budget_L1[Budget L1]=”Fixed Overheads”)

and Total Overheads= [Total Fixed overheads]+[Total Variable Overheads]

as reported this gives data in the power bi report for the components, but no entry for the total one that sums the 2 measures as below

 

Capture.PNG

I then tried replacing the Total Overheads with CALCULATE([Total Actual],Budget_L1[Budget L1]=”Fixed Overheads”)+CALCULATE([Total Actual],Budget_L1[Budget L1]=”Variable Overheads”). This made no difference

 

I then tried changing the formula for Total Fixed Overheads = CALCULATE([Total Actual],Budget_L1[Budget L1]=”Variable Overheads”). I thoguht I woudl just get a duplicate value for both fixed and variable overheads in the power BI report, but actually the Fixed one just disappeared.

 

I don’t really understand the code, but seems in Power BI it is critical that the formula refers to the Budget L1 tha t is in the head table and if they aren’t the same you get no result. Is this because of the COUNTROWS bit?

 

Mike

 

Mike

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@masplin,

 

You may check if the following thread helps.

http://community.powerbi.com/t5/Desktop/Utilization-Consolidated-summary-both-horizontal-and-vertica...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

sorry no as this is basically subtotals of the same measure not showing intermediate totals based on a different measure which is what the blog post was trying to do.  

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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