Forum Discussion

hammad_ali's avatar
hammad_ali
Regular Visitor
7 years ago
Solved

Multiply two columns in different tables by most recent date

Hi,

 

I'm having trouble multiplying two colums in two tables to get the most recent value.

The tables look like this:

 

table1  
   
uidTickRefCount
1AB110
2AB420
3XY25
4XY15

 

table2   
    
uidDateTickRefValue
131/01/2019AB1100
231/01/2019AB4200
330/06/2019XY210
430/06/2019XY150
530/06/2019AB1150
531/07/2019XY220

 

The TickRef in both tables are related and is one to many, table2 having many entries. What I want to achieve is to multiply sum of Count in table1 with the value from table2 with the most recent date.

Expected result should be like this:

 

Expected Result   
    
TickRefSum CountLatest ValueProduct
AB1101501500
AB4202004000
XY2520100
XY1550250

 

I can't seem to figure this one. Please help or share a link with solution to a similar problem.

 

Thanks

  • Can you please refer the above steps to get the expected result with out DAX.