Forum Discussion
Digger
Post Patron
5 years agoMultiply two tables using userelationship or Treatas
I have to tables Table1 CurrencyRates Name | Rate | Date | Custom USD | 1,35 | 2021-08-01 | USD2021-08-01 AFN | 0,35 | 2021-08-01 | AFN2021-08-01 BRL| 0,05 | 2021-08-01 | BRL2021-08-01 Tab...
- 5 years ago
Hi, Digger
You can take a try the measure as below:
Measure_PriceinEur = Calculate(DIVIDE(max(Table2[Amount]),MAX(Table1[Rate])), USERELATIONSHIP(Table2[Custom],Table1[Custom]))Then apply it to a table visualization.
Best Regards,
Community Support Team _ Eason
hashtag_pete
Helper V
5 years agoHello Digger,
have you tried lookupvalue? Something like
Conversion = DIVIDE ( Table2[Amount] , LOOKUPVALUE(Table1[Rate], Table1[Custom], Table2[Custom]))
Does that help? If so, please
- mark this post as a solution
- give kudos
Thanks hashtag_pete
- Digger5 years ago
Post Patron
hashtag_pete does lookup on 10 mil rows is good idea?
- v-easonf-msft5 years ago
Community Support
Hi, Digger
You can take a try the measure as below:
Measure_PriceinEur = Calculate(DIVIDE(max(Table2[Amount]),MAX(Table1[Rate])), USERELATIONSHIP(Table2[Custom],Table1[Custom]))Then apply it to a table visualization.
Best Regards,
Community Support Team _ Eason