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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
// Not sure if I've got the logic right as I can't see
// the model. Also, not sure if all the language
// constructs will work in the DQ mode.
[Base Value] = SUM( 'Table'[Value] )
[Value Converted] =
VAR SelectedCurrency =
// This line says: if there is only one visible Code
// in the current context, take it. Otherwise use "USD".
COALESCE( SELECTEDVALUE( Results_ExchangeRates[Code] ), "USD" )
// This will return the rate if there's only one visible
// in the current context. If none is visible or many, BLANK
// will be returned.
VAR SelectedRate = SELECTEDVALUE( Results_ExchangeRates[Rate] )
VAR EffectiveRate =
// For code = "USD", return rate = 1, else take
// the rate from above.
IF( SelectedCurrency = "USD", 1, SelectedRate )
VAR Result = [Base Value] * EffectiveRate
RETURN
Result
User | Count |
---|---|
14 | |
10 | |
7 | |
6 | |
5 |
User | Count |
---|---|
30 | |
19 | |
12 | |
7 | |
5 |