Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Multiple column date comparison and replace with earliest date

Hello, I am a relatively new user to PowerBI. I am finding it challenging to implement some of the requirements using powerBI.     I have 4 date columns, DateA, DateB, DateC and DateD. (Some of th...
  • v-zhenbw-msft's avatar
    5 years ago

    Hi Anonymous ,

     

    We can use the following steps to meet your requirement.

     

    1. Click ID column and unpivot other columns.

     

     

    2. Copy the table and group one of them.

     

     

    3. Merge the group table and expand the min date.

     

     

    4. Then select id column and pivot value column.

     

     

    5. Use conditional column to create four date columns to separate the null.

     

     

    6. At last we can add another conditional column, then delete the Date.A, B, C, D.

     

     

     

    If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

     

    Best regards,

     

    Community Support Team _ zhenbw

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    BTW, pbix as attached.