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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to calculate YTD with different previous exchange rate?

Hi,

How can I get YTD with specific exchange rate in related month?

For example, I want to have sum of Apr and May 2021 in C2, it should be 7,171,715, but I only get 6,703,246 (C3), the reason is

in C3 it comes (3406432+3296812)*0.94 however I want to have 3406432*0.93+3296812*0.94 (first two month YTD).

 

How can I get that YTD function ?  Thank you so much guys.!

 

RichardJ0705_0-1656994056190.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Please follow the steps:

1.Create a measure to calculate the true_sales and add to the table visual object

true_sales =
SUMX ( Sheet1, Sheet1[Sales] * Sheet1[Exchange rate] )

2.Create a measure to calculate the YTD sales and add to the table visual object

YTD_Sales =
TOTALYTD ( [true_sales], Sheet1[MonthInCalendar] )

3.You will get below table visual object

vbinbinyumsft_0-1657264824502.png


Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Please follow the steps:

1.Create a measure to calculate the true_sales and add to the table visual object

true_sales =
SUMX ( Sheet1, Sheet1[Sales] * Sheet1[Exchange rate] )

2.Create a measure to calculate the YTD sales and add to the table visual object

YTD_Sales =
TOTALYTD ( [true_sales], Sheet1[MonthInCalendar] )

3.You will get below table visual object

vbinbinyumsft_0-1657264824502.png


Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@Anonymous , if you use the time intelligence function with the date table you can change FY for YTD. Apr-Mar FY YTD

 

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"3/31"))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.