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
patrik555
Regular Visitor

Average monthly exchange rate

Hi,

 

I would like to create a monthly average rate column, with the following instruction, could you please help me?

 

Exchange_Rate_Type=MNBDEVKOZ

Source_Currency_Code=EUR

 

I have a Starting_Date column with dates (e.g.: 01.12.2022)

Relational_Exch_Rate_Amount - > i would like to get a monthly average for these numbers. 

 

Thank you.

1 REPLY 1
amitchandak
Super User
Super User

@patrik555 ,  Try a measure like

 

Averagex(Values(Table[Month Year]), calculate(Divide(Sum(Table[Value]), Sum(Table[Rate])), filter(Table,[Source_Currency_Code] ="EUR" && Table[Exchange_Rate_Type]="MNBDEVKOZ")))

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.

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.