Forum Discussion
Sub Total Calculation
Sugumaran31 , Make sure Desc and PROW are coming from a dim table
example
Amount =
Switch( True()
, MAX ( Account[Account ID] ) = 4, CALCULATE([Revenue], filter(all(Account), Account[Account ID] in {1,2,3} ))
, MAX ( Account[Account ID] ) = 10, CALCULATE([Revenue], filter(all(Account), Account[Account ID] in {8,9,10} ))
[Total Amount]
)
Have explained the same in, additional table is optional , I used as I do not want change account table
Power BI How to get the P&L formatting right: https://youtu.be/C9K8uVfthUU
Power BI How to get two columns format Profit and Loss Statement(P&L) right: https://youtu.be/WLg85yiMgHI
https://medium.com/microsoft-power-bi/power-bi-formatted-p-l-with-custom-sub-totals-and-blank-rows-e39ca822908a
- Sugumaran312 years agoHelper I
But Dax is not working sir I tried it. I will share the Excel file link in the below belowhttps://docs.google.com/spreadsheets/d/1rx6lbBi98NEIKPdRjJf6NFaxk6c_6-Vs/edit?usp=drive_link&ouid=108276919293503145010&rtpof=true&sd=true