Forum Discussion

nic2023's avatar
nic2023
Frequent Visitor
3 years ago
Solved

Power Query Date Column: to display month based on an existing column

We are currently in month of August, I have a raw data with a column contains Dates ranged from later June to all possible July dates, the majority of the dates are July.   The desired outcome is to...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi nic2023 ,

     

    Raw data:

     

    Final result:

     

    Steps of the soltuion:

    1.Add a custom column to return MonthYear based on the date column.

     

    2.Group by the date column.

     

    3.Add a custom to return the majority of the month year.

     

    4.Fill down/up the monthyear.

     

    5.Remove unneeded columns and expand the all rows, you will get the result.

     

    You can also download my attachment for more details.

     

                                                                                                                                                             

    Best Regards,

    Stephen Tao

     

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