Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi
I would like to calculate the closing balance and opening balance in ZAR currency from the base currencies using a DAX measure. My current attempt wont work. Perhaps it is a syntax issue in where I multiply with the currency rate.
I have a row for each month and columns for the base movement amount, the closing rate and opening currency rate for the month.
My current attempt to calculate the closing balance at each selected date:
Gross Premium Debtors Close ZAR:
CALCULATE ( [Gross Premium Debtors move],
FILTER( ALL( 'SSAS V_DIM_Date'), 'SSAS V_DIM_Date'[Date] <= MAX( 'SSAS V_DIM_Date'[Date]) )
* 'SSAS V_FactPremiumCombined'[ClosingCurrencyRate]) )
Gross Premium Debtors move:=SUM('SSAS V_FactPremiumCombined'[GrossDebtors_MovementInclVAT])
@amitchandak
Hi @Anonymous ,
Based on your description, I create a measure using the following sample data. Does it match the output you want?
Measure 3 =
CALCULATE(
SUM( 'SSAS V_FactPremiumCombined'[GrossDebtors_MovementInclVAT] )
* MAX( 'SSAS V_FactPremiumCombined'[ClosingCurrencyRate] ),
FILTER(
'SSAS V_FactPremiumCombined',
'SSAS V_FactPremiumCombined'[Month] <= MAX('SSAS V_DIM_Date'[Date])
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
thank you for this. Did you not mean this in the formula (the bold below):
can you share the pbix which you created, please/
Gross Premium Debtors Close ZAR **bleep** move:=
CALCULATE( SUM( 'SSAS V_FactPremiumCombined'[GrossDebtors_MovementInclVAT] ) * MAX( 'SSAS V_FactPremiumCombined'[ClosingCurrencyRate] ),
FILTER( 'SSAS V_DIM_Date', 'SSAS V_DIM_Date'[ReportingDateEnd] <= MAX('SSAS V_DIM_Date'[ReportingDateEnd]) ) )
Hi @Anonymous ,
This is my PBIX file.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi there
Please can you share the pbix file again?
I get this message
Thank you so much
Thank you so much
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
70 | |
37 | |
29 | |
26 |
User | Count |
---|---|
91 | |
49 | |
44 | |
38 | |
37 |