Trying to condense / group rows to remove nulls, any help appreciated

stbren ⚪️


I am working on a data flow that needs to perform various substring functions to isolate data from a large xml string.

I have gotten it close, where the data is linked to the log / time / user in in the sql database, and i am able to separate values into appropriately named columns.

I would like to know if/how to condense these rows so that the nulls disappear, and only the log, starttime, logged in user (these should be the same across all rows that have the same log)(log is unique so there will not be more than one row that has a value)

Please see picture below:

Thank you!

Best Answer

  • GrantSmith
    GrantSmith Indiana 🥷
    Answer ✓

    Group by your log start time and logged in user and take the max values

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**


  • Thank you for your reply @GrantSmith

    I ended up using a series of joins, but your advice is useful for the final card that will display the data.

    take care!