Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Convert new variable in Power Query to a column of table

I have dates in my table A, and I have another list of Dates in another table B. If Date in A = any Date in B, then the column should be 1, else 0   I defined a variable for this -  BL_Count = if ...
  • parry2k's avatar
    parry2k
    6 years ago

    In power query you can do a merge between two tables, and expand table B and then add a custom column, if date of table b column is null then 0 else 1 Assuming after merge the date column from Table B is called TableB.Date

     

    if [TableB.Date] = null the 0 else 1