Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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.
| Data | Percent Calc | Logical column (final result) | |
| Revenue | 1000 | 1 | 1000 |
| Expenses A | 300 | 0.3 | 300 |
| Margin | 700 | 0.7 | 700 |
| Margin % | 700 | 0.7 | 70% |
| Expenses B | 250 | 0.25 | 250 |
| Profit | 450 | 0.45 | 450 |
| Profit % | 450 | 0.45 | 45% |
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?
Solved! Go to 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.
@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
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.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 43 | |
| 38 | |
| 32 |