Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have requirement as per below:
P&L Statement has different values such as Revenue, Direct cost, Overheads, Depreciation& Interest,
Report shows P&L Statement wise Amount
We want to show "Net Profit" calculated as "Revenue - (Direct cost+ Overheads+ Depreciation& Interest)" as mentioned below.
Any suggestions how to get this row-wise calculation
Thanks in advance.
Gnaneshwar
Solved! Go to Solution.
Hi @gnaneshwar
Based on your description, you can consider the following solution.
Sample data
1.Create a statement table , it include a index column
Sample measure
Sum = SUM('Table'[Value])
Click the statement column and select sort by Index column.
2.Then create a measure
MEASURE =
VAR a =
CALCULATE ( [Sum], 'Table'[Statement] = "Revenue" )
VAR b =
SUMX (
FILTER (
ALLSELECTED ( 'Table' ),
[Month]
IN VALUES ( 'Table'[Month] )
&& [Statement] <> "Revenue"
),
[Sum]
)
RETURN
IF (
SELECTEDVALUE ( 'Statement'[Statement] ) <> "NetProfit",
CALCULATE ( [Sum], 'Table'[Statement] IN VALUES ( 'Statement'[Statement] ) ),
a - b
)
Then put the statement field of the statement table to row , and month field of table to column , then put the measure to the value in matrix.
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @gnaneshwar
Based on your description, you can consider the following solution.
Sample data
1.Create a statement table , it include a index column
Sample measure
Sum = SUM('Table'[Value])
Click the statement column and select sort by Index column.
2.Then create a measure
MEASURE =
VAR a =
CALCULATE ( [Sum], 'Table'[Statement] = "Revenue" )
VAR b =
SUMX (
FILTER (
ALLSELECTED ( 'Table' ),
[Month]
IN VALUES ( 'Table'[Month] )
&& [Statement] <> "Revenue"
),
[Sum]
)
RETURN
IF (
SELECTEDVALUE ( 'Statement'[Statement] ) <> "NetProfit",
CALCULATE ( [Sum], 'Table'[Statement] IN VALUES ( 'Statement'[Statement] ) ),
a - b
)
Then put the statement field of the statement table to row , and month field of table to column , then put the measure to the value in matrix.
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 33 | |
| 31 | |
| 29 |