Forum Discussion

sahubibhuti45's avatar
2 years ago

Getting a row level operation by using two different tables

Hi Folks,

 

I have 2 tables like

Loan
Party namecurrencydateorg_amount
johnusd15th jan

30

joyusd16th jan40
chandleraud20th jan20
monikaeur14th feb40
phoebedin20th feb20

 

another table having 

Currency History 
Datecurrencyconversion amount
20th janusd81
20th janaud84
20th jandin82
20th janeur84
21st janusd87
21st janaud83
21st jandin81
21st janeur84
22nd janusd92
22nd janaud85
22nd jandin82
22nd janeur84

 

I wanted to give a date slicer as an input date from the rate history table i.e. 2nd table and want to calcualte the amount by multiplying the org_amount * conversion rate for each party. I have tried joining both the tables but i am getting huge number of rows.

 

whated to get an output like this. based on user input date

Loan
Party namecurrencydateorg_amountorg_amount * conversion amount

 Thanks

7 Replies

    • sahubibhuti45's avatar
      sahubibhuti45
      Helper I

      Hi Daniel29195 ,Date is from 2nd table because the values are varying and we need to chhose a date,depending upon input date it will pick up the values from the 2nd table and multiply the origional amount

      • sahubibhuti45's avatar
        sahubibhuti45
        Helper I

        tried with solutions but unable to take 2 different columns from 2 different tables