Forum Discussion
Forecast Report
- 2 years ago
Thank you 🙏 gmsamborn for your help, I really appreciate it! You are the BEST!!
The 2 extra measures were created [Latest Rate] and [gms2] to have the values in CAD for future months to automatically looks for the latest rate and averages all rates for that month.
- Latest Rate =CALCULATE(MAX( 'DIM_FIX_RATE'[Date] ),ALL( 'DIM_FIX_RATE' ))- gms 2 =VAR _Latest = [Latest Rate]VAR April2024AvgRate =CALCULATE(AVERAGE(DIM_FIX_RATE[FX Rate (USD-CAD)]),FILTER(ALL( DIM_FIX_RATE ),MONTH( DIM_FIX_RATE[Date] ) = MONTH( _Latest )&& YEAR( DIM_FIX_RATE[Date] ) = YEAR( _Latest )))VAR MthFxRate =IF(MAX(DIM_DATE[Date]) <= TODAY(),AVERAGE( DIM_FIX_RATE[FX Rate (USD-CAD)] ),April2024AvgRate)VAR CanadaUSD =SUMX('Sheet1','Sheet1'[RL Amount (USD)] * MthFXRate)RETURNCanadaUSD
Thanks gms !
I am unable to share the pbix file with you through OneDrive, Dropbox, Google Drive. My sample pbix file is ready, if you can share your email address with me, I can send it through email. To give you more info, this is the main table SS.
I have the DIM_FIX RATE table until 04/23/2024.
This is DIM_DATE table SS.
Thank you 🙏 gmsamborn for your help, I really appreciate it! You are the BEST!!
The 2 extra measures were created [Latest Rate] and [gms2] to have the values in CAD for future months to automatically looks for the latest rate and averages all rates for that month.