Forum Discussion
To add new column, by comparing date fields from 2 tables
- 4 years ago
Hi Anonymous ,
If there is a primary key,you could use below method:
Create a column as below:
approval date = LOOKUPVALUE('Table B'[Approval_date],'Table B'[Index],'Table'[Index],blank())And you will see:
Then you create another column to compare the two dates.
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my raeply as a solution!
No relationship--that's pretty tough to work with, but if you know that the dates between tables are on the same row, then you could try add a step like:
= List.Zip({#"Table A"[Start_Date], #"Table_B"[End_Date]})
Then you can extract the list values (as opposed to expanding to new rows) and do the row by row math.
--Nate
- Anonymous5 years agoNot applicable
Anonymous I will try to get the relationship from the source team.Lets think we have key(PK) how can we compare.
- v-kelly-msft4 years ago
Community Support
Hi Anonymous ,
If there is a primary key,you could use below method:
Create a column as below:
approval date = LOOKUPVALUE('Table B'[Approval_date],'Table B'[Index],'Table'[Index],blank())And you will see:
Then you create another column to compare the two dates.
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my raeply as a solution!