This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 32 | |
| 26 | |
| 24 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 50 | |
| 31 | |
| 26 | |
| 22 |