Forum Discussion

102938's avatar
102938
Copper Contributor
Aug 03, 2022
Solved

Error when aggregating dates in a power query

Hello,   I am using a power query to group and aggregate columns of a table (with great success so far thanks to members of this forum!). The latest obstacle is dates - one of the columns features ...
  • Lorenzo's avatar
    Lorenzo
    Aug 03, 2022

    102938 

     

    OK, so:

    #1 Edit your existing Changed Type step to set {"Start", type date}

    #2 In the APPLIED STEPS, select step Changed Type

    #3 Select column [Start] > Home (tab) > Data Type: Text

         3a) You're asked to Insert Step > Confirm

         3b) Then you're asked Replace current or Add new step  > Add new step

    #4 With the Advanced Editor edit your Grouped Rows step and at the end where you currently have:

              {"Start", each Text.Combine(List.Distinct([Start]), ", "), type nullable date}

    replace the date with text

     

    Example with only 2 aggregations:

Resources