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
andrewb95
Helper II
Helper II

Daily Currency Conversion

I have a table as per below which shows a value per day in GBP. 

DateAmount in GBP
01.01.202110
02.01.202115

 

I also have another table which shows the daily conversions:

DateGBP to USD
01.01.20211.32
02.01.20211.31

 

I want to be able to add a column to the table A with the daily value in USD. 

DateAmount in GBPAmount in USD
01.01.20211013.2
02.01.20211519.65

 

Please advise on the calulation to get this daily based on the changing values per date.  

1 ACCEPTED SOLUTION
smpa01
Super User
Super User

@andrewb95  calculated column as following assuming no relationship

 

 

 

Column = CALCULATE(MAX(Conversion[GBP to USD]),FILTER(Conversion,Conversion[Date]=CALCULATE(MAX(GBP[Date])))) * CALCULATE(MAX(GBP[Amount in GBP]))

 

 

 

smpa01_0-1633356715876.png

 

same result assuming there is a relationship

 

Column = RELATED(Conversion[GBP to USD])*GBP[Amount in GBP]

 

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

1 REPLY 1
smpa01
Super User
Super User

@andrewb95  calculated column as following assuming no relationship

 

 

 

Column = CALCULATE(MAX(Conversion[GBP to USD]),FILTER(Conversion,Conversion[Date]=CALCULATE(MAX(GBP[Date])))) * CALCULATE(MAX(GBP[Amount in GBP]))

 

 

 

smpa01_0-1633356715876.png

 

same result assuming there is a relationship

 

Column = RELATED(Conversion[GBP to USD])*GBP[Amount in GBP]

 

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.