Forum Discussion
unnijoy
5 years agoPost Prodigy
Lookup
i have 2 tables. one is Active HC and other is Inactive HC. In Inactive HC i don't have L2 name. but it is available on Active HC table. i need to find it based on the below logic. Logi...
amitchandak
5 years agoSuper User
unnijoy , a new column in inactive
maxx(filter(active , active[empid] = inactive[empid]), active[l2])
refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
unnijoy
5 years agoPost Prodigy
amitchandak in the above dax i think we forgot to add the other two filter, one is select only opening in Active and second is we have to select the previous month of the report date in Inactvie and based on the previous month we have to lookup from Active.
that means if in Inactive table the report date is Feb - 1- 2021 then we have to select Jan -1 -2021 in Active table and filter only Opening and then based on the EMPID we have to select the L2 from Active.