Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Manar
Helper II
Helper II

Measure Multiplying a column by a measure

 

I calculated  a measure  based on average of 12 months of exchange rate (12 mths Avg), and it's displayed as a column in my table.

I wan to multiply every value of that column by another measure (ExchangeRateeuroToUSD) to change the Avg from USD to EUR.

 

I tried the following but it only shows me the value for EURO it doesn't multiply all the values in the column.

 

12 Mths Avg (USD) x ExchangeRateEuroToUSD =
IFERROR([12 Mths Avg (USD)] * ([ExchangeRateEuroToUSD]),blank())

 

--------------------------------

ExchangeRateEuroToUSD formula is :    calculate([12 Mths Avg (USD)], CurrencyDim[ExchangeCurrencyCode]="EUR")

 

it gives me 1 (the only value) when exchangeCurrencyCode is EUR.   How can I multiply every single value of the 12 mths avg column by that measure?

 

1.png

1 ACCEPTED SOLUTION
Floriankx
Solution Sage
Solution Sage

Hello,

 

you can try the following:

12 Mths Avg (USD) x ExchangeRateEuroToUSD =
IFERROR(
[12 Mths Avg (USD)] * (CALCULATE([ExchangeRateEuroToUSD];ALL(CurrencyDim[ExchangeCurrencyCode]))),blank())

View solution in original post

2 REPLIES 2
Floriankx
Solution Sage
Solution Sage

Hello,

 

you can try the following:

12 Mths Avg (USD) x ExchangeRateEuroToUSD =
IFERROR(
[12 Mths Avg (USD)] * (CALCULATE([ExchangeRateEuroToUSD];ALL(CurrencyDim[ExchangeCurrencyCode]))),blank())
quentin_vigne
Solution Sage
Solution Sage

Hi @Manar

 

Could you please provide us a sample of your data (with tablename) as a table or a text so we can copy / paste that and solve this ? 

 

More information on how to get your question answered and how to post datas : https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

- Quentin

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.