Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello, DAX Wizzards
I have three types of accounts in the Balance Sheet:
1. Aggregation that is a measure of Running Total multiplied by the end of the month FX rate.
2. Fixed Rate Valuation that is a measure of Running Total at historical FX rate
3. Foreign Currency Translation that is to be an opposite sum of Aggregation and Fixed Rate Valuation
In example below I would like to show another line before Total that is to be -3,391,740.18 which is then turns Total into zero
I have half written my DAX
@Test3 Trial Balance Amount (FX Rate) =
VAR FCTR_BS =
CALCULATE([Aggregation BSheet Accounts],
VALUES( 'NL Mapping'[FX Valuation]),
'NL Mapping'[FX Valuation] = "Aggregation")
VAR FCTR_FixRate =
CALCULATE(
[Running Totals (FX historical, with spill)],
VALUES( 'NL Mapping'[FX Valuation]),
'NL Mapping'[FX Valuation] = "Fixed Rate Valuation")
//VAR FCTR =
// DAX to be inserted
VAR Result =
FCTR_BS+FCTR_FixRate+FCTR
RETURN
Result
Could you please help me, if at all?
Thank you very much indeed
Solved! Go to Solution.
You don't only need the number, you also need the statement account value for that Foreign Currency Translation. Is that part of your dimension table?
Hi @lbendlin ,thanks for the quick reply, I'll add further.
Hi @MiraAbel ,
The Table data is shown below:(The last line was added manually by me)
1. Use the following DAX expression to create a column
Column = SWITCH(TRUE(),
'Table'[Balance Sheet] = "A",1,
'Table'[Balance Sheet] = "B",2)
2. Use the following DAX expression to create a measure
Measure =
var _a = CALCULATE(SUM('Table'[Amount]),VALUES('Table'[Balance Sheet]),'Table'[Balance Sheet] = "A")
VAR _b = CALCULATE(SUM('Table'[Amount]),VALUES('Table'[Balance Sheet]),'Table'[Balance Sheet] = "B")
VAR _c = CALCULATE(SUMX(FILTER('Table','Table'[Balance Sheet] = "A"),[Amount]),ALL('Table'[Balance Sheet]))
VAR _d = CALCULATE(SUMX(FILTER('Table','Table'[Balance Sheet] = "B"),[Amount]),ALL('Table'[Balance Sheet]))
RETURN
IF(MAX('Table'[Amount]) = BLANK(),-(_c+_d),
IF(SELECTEDVALUE('Table'[Column]),_a+_b,
IF(COUNTROWS('Table') <> COUNTAX(ALL('Table'),[Balance Sheet]) ,_a+_b,
0)))
3. Final output
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @lbendlin ,thanks for the quick reply, I'll add further.
Hi @MiraAbel ,
The Table data is shown below:(The last line was added manually by me)
1. Use the following DAX expression to create a column
Column = SWITCH(TRUE(),
'Table'[Balance Sheet] = "A",1,
'Table'[Balance Sheet] = "B",2)
2. Use the following DAX expression to create a measure
Measure =
var _a = CALCULATE(SUM('Table'[Amount]),VALUES('Table'[Balance Sheet]),'Table'[Balance Sheet] = "A")
VAR _b = CALCULATE(SUM('Table'[Amount]),VALUES('Table'[Balance Sheet]),'Table'[Balance Sheet] = "B")
VAR _c = CALCULATE(SUMX(FILTER('Table','Table'[Balance Sheet] = "A"),[Amount]),ALL('Table'[Balance Sheet]))
VAR _d = CALCULATE(SUMX(FILTER('Table','Table'[Balance Sheet] = "B"),[Amount]),ALL('Table'[Balance Sheet]))
RETURN
IF(MAX('Table'[Amount]) = BLANK(),-(_c+_d),
IF(SELECTEDVALUE('Table'[Column]),_a+_b,
IF(COUNTROWS('Table') <> COUNTAX(ALL('Table'),[Balance Sheet]) ,_a+_b,
0)))
3. Final output
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You don't only need the number, you also need the statement account value for that Foreign Currency Translation. Is that part of your dimension table?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |