Forum Discussion

gauravnarchal's avatar
gauravnarchal
Post Prodigy
6 years ago
Solved

Compare values from 2 rows

Need help!!  How can I compare the data from two rows in a table?   I need to match “UnqNumber” field to find out missing "UnqNumber" in "SubmitTo" (2) of each Invoice.  
  • ToddChitt's avatar
    ToddChitt
    6 years ago

    One 'brute force' approach would be to seperate the base table into two in Power Query, each filtered respectively for the 1 or 2, then LEFT OUTER JOIN them together on Unique ID and look for nulls.

     

    Another approach would be to create a measure that is the MAX(SubmitTo) and when you view the list by UniqueID, look for any where the MAX is 1 instead of 2.

     

    I'm sure there are more ways.