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
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
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.