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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.