Compare two data columns with different time stamp columns

William 41 Reputation points

I am trying to compare two data columns with different time stamp columns. The first columns look like this: 88085-image.png

The second columns look like this: 88096-image.png

And i want to compare them like this: 88142-image.png

I have thousands rows in my columns to compare, so an answer to this problem would really help me.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
23,910 questions
No comments
{count} votes

Accepted answer
  1. Lz._ 8,801 Reputation points

    I didn't change anything to your data, I took what I found in sheet Ark1, that's it.
    In this updated version I copied/pasted the values from sheet Ark2 into Tabell1 and reformatted the 4 columns
    Is this OK now?

    No comments

2 additional answers

Sort by: Most helpful
  1. Lz._ 8,801 Reputation points

    Hi @William

    2 columns named "Time" means those columns are necessarily in different tables, what I assumed below:

    // Tables for demo  
        Table1 = Table.FromRows(  
            type table [Time=time, Column1=text]  
        Table2 = Table.FromRows(  
            type table [Time=time, Column2=text]  
        JoinedTables = Table.NestedJoin(  
            "Tbl2", JoinKind.Inner // or JoinKind.LeftOuter depend. on the expected result  
        Expanded = Table.ExpandTableColumn(JoinedTables, "Tbl2", {"Column2"}, {"Column3"})  

  2. Lz._ 8,801 Reputation points