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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
Can some one help me with the below expression. When i try to add this as measure the total value is gryed out.
Am i missing something in the formula?
Hi @RanjanThammaiah ,
Could you please share the "Selected Currency" measure to us?
And I think the result of the "Selected Currency" is a string, not a rate, you may need to a rate to multiply the Total Value.
Aiolos Zhao
Hello @RanjanThammaiah,
Please try following:
Measure =
//Following statement gives "USD","NZD" etc
VAR SelectedCurrency = [Selected Currency]
//Following statement gives value of currency
VAR SelectedCurrencyValue =
CALCULATE (
MIN ( Sheet1[CurrencyValue] ),
FILTER (
Sheet1,
Sheet1[Currency] = SelectedCurrency
)
)
RETURN
SWITCH (
SelectedCurrency,
"NZD", SUM ( Sheet1[Total Value] ) * SelectedCurrencyValue,
"USD", SUM ( Sheet1[Total Value] ) * SelectedCurrencyValue,
SUM ( Sheet1[Total Value] )
)
Please note that I have used my column names. You may need to change those.
Let me know if this doesn't work as expected.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!