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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
MrBrodya
Regular Visitor

Looking up a single value based on three filters

Hi Everybody,

 

I am having trouble making the formula work for looking up a single exchange rate value based on three filters with the enclosed table.

 

Currency      Year       Version            Type        Month ExchRate MonthID

USD/JPY151PCURRENTGL_AVGRATEAPR105151PAPR
USD/JPY151PCURRENTGL_AVGRATEMAY105151PMAY
USD/JPY151PCURRENTGL_AVGRATEJUN105151PJUN
USD/JPY151PCURRENTGL_AVGRATEJUL105151PJUL
USD/JPY151PCURRENTGL_AVGRATEAUG105151PAUG
USD/JPY151PCURRENTGL_AVGRATESEP105151PSEP
USD/JPY151PCURRENTGL_AVGRATEOCT105151POCT
USD/JPY151PCURRENTGL_AVGRATENOV105151PNOV
USD/JPY151PCURRENTGL_AVGRATEDEC105151PDEC
USD/JPY151PCURRENTGL_AVGRATEJAN105151PJAN
USD/JPY151PCURRENTGL_AVGRATEFEB105151PFEB
USD/JPY151PCURRENTGL_AVGRATEMAR105151PMAR

 

My formula is as follows:

 

CALCULATE(sum(Curr_Rate[ExchRate]),Filter(Curr_Rate,Curr_Rate[Version]="CURRENT" && Curr_Rate[MonthID]="151PSEP" && Curr_Rate[Currency]="USD/JPY"))

 

Any assiatance would be appreciated.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

works fine for me. see attached. change source value for 151PSEP and it'll reflect in the measure

 

https://ufile.io/poar1

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

works fine for me. see attached. change source value for 151PSEP and it'll reflect in the measure

 

https://ufile.io/poar1

chirayuw thank you!

Stachu
Community Champion
Community Champion

the syntax you posted is correct, as long as the combination of these 3 columns returns only 1 row - is that the case? or does the measure not work as intended?
or do you want this to be dynamic based on the slicer selection rather than hardcoded? 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.