Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Community,
I am new to Power BI. I am trying to build a Balance Sheet from an financial statement which has a few line items recalculated.
I want the code to sum up the Balance sheet using for the positions that are recalculated the corresponding values and for the others the values that were input for the model.
I researched already here and thought, that SUMX would to the job. However, I can't get the totals work correctly.
My Measure is the following (Where [Total Amount] is the input numbers and DIM_Structure[Account] is the line item structure of the Balance Sheet:
@Jewb16 , Try like , assumed you fact name is fact
SUMX(summarize(Fact, 'DIM_Structure'[Account],DIM_Date[Monatsname])),
switch(
TRUE(),
selectedlevel = "Ergebnis der Periode", PnL,
and (selectedlevel = "Gewinnrücklage", MAX(DIM_Date[Monatsname]) = "Dezember"), 10,
[TotalAmount]
)
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |