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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.