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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
altesv
Frequent Visitor

Simplify P&L with Calculated Rows

Hi have a P&L with calculated rows within the matrix visual. It is a complicated process because PBI doesn't seem to support this.

 

Step 1 for me was to duplicate all of my data that I would be creating a calculated row for (literally copy paste margin and profit data so that it is duplicated in my source). 

Step 2 was to create a percentage calculation measure where I divided each row by the value in revenue.

Step 3 was to create a logical calculation measure which retrieved from either the "data" column or the "percent calc" column. Plus rules for formatting percents.

 

 DataPercent CalcLogical column (final result)
Revenue100011000
Expenses A3000.3300
Margin7000.7700
Margin %7000.770%
Expenses B2500.25250
Profit4500.45450
Profit %4500.4545%

 

Does anyone know of a simpler way to do this while retaining this P&L structure? Particularly, is there a way that I could have the duplicate data appear without me duplicating in the data source?

 

 

1 ACCEPTED SOLUTION

Help no longer needed. I've learned that I can create calculated accounts from my data source, so I don't need to do any further manipulation within Power BI.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@altesv,

What is the original format of your table? Could you please post the table structure here?

Regards,
Lydia

It's pretty simple. Data source is month end balances across the following intersections:

 

Year | Month | Account | Business Segment | Business Region | Amount 

Anonymous
Not applicable

@altesv,


What logic do you use to create the above metrics(revenue,margin, profit, expense...)? Please share sample data of your original table and post expected result based on the sample data.

Regards,
Lydia

Help no longer needed. I've learned that I can create calculated accounts from my data source, so I don't need to do any further manipulation within Power BI.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.