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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Hamdan1234
Helper III
Helper III

Excel Formula Replication

I have got two tables in two sheets  and I have used Sumifs formula in excel to get a new column on the basis of both the tables.Tables are:

MonthCurrConversion Rate
JanAUD0.769823
JanBRL0.191741
JanCAD0.785323
JanEUR1.220601
JanGBP1.363045
JanHKD0.128978
JanINR0.013683
JanSGD0.756653
JanUSD1.000000

 

MonthDocument CurrencyCurrency Conversion Outcome
JanUSD1
JanUSD1
JanUSD1
JanUSD1
JanUSD1
JanCAD0.785323
JanUSD1
JanEUR1.220601
JanUSD1

I have used this formulas =SUMIFS('Currency Key'!C:C,'Currency Key'!A:A,A2,'Currency Key'!B:B,B2) to get currency conversion out come. I want to get same column in power bi. I have to get this formula through these columns in power bi. How can it be done. It seems a bit complicated to me. Help would be appreciated.

Thanks

3 REPLIES 3
v-angzheng-msft
Community Support
Community Support

Hi, @Hamdan1234 

 

Can you please elaborate on what you are trying to achieve ? I'm not quite sure what output you're hoping to get. Could you draw a simple picture to show your expected visual so that i may work out with a workaround?

manikumar34
Solution Sage
Solution Sage

@Hamdan1234 ,
Create relationship on currency type and use RELATED or LOOKUPVALUE to get the value.





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




Greg_Deckler
Community Champion
Community Champion

@Hamdan1234 Try:

Currency Conversion Outcome (Column) =
  VAR __Month = [Month]
  VAR __DocumentCurrency = [Document Currency]
  VAR __ConversionRate = MAXX(FILTER('OtherTable',[Month]=__Month && [Curr]=__DocumentCurrency),[ConversionRate])
RETURN
  __ConversionRate


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.