Forum Discussion

jcastr02's avatar
jcastr02
Post Prodigy
2 years ago
Solved

grouping by store

Hello I'm trying to join or group by so that the information is grouped into the same record line.  See below current vs. Desired result.

 

Current DESIRED RESULT
StoreTemporary Support Reason StoreTemporary Support Reason
6244Internal Store Closure 6244Internal Store Closure; Project ABC
6244Project ABC   
  • Hello olgad -  What option did you pick to group by here? All rows, etc.  did you manually change the formula?

  • you can take any option max, min and then replace the part in the formula bar starting with each and before the type each Text.Combine([Temporary Support Reason], ";")

     

3 Replies

  • olgad's avatar
    olgad
    Resident Rockstar

    Hi, 
    in power query

     

    = Table.Group(#"Changed Type", {"Store"}, {{"Temporary Support Reason", each Text.Combine([Temporary Support Reason], ";"), type nullable text}})

     



    • jcastr02's avatar
      jcastr02
      Post Prodigy

      Hello olgad -  What option did you pick to group by here? All rows, etc.  did you manually change the formula?

  • olgad's avatar
    olgad
    Resident Rockstar

    you can take any option max, min and then replace the part in the formula bar starting with each and before the type each Text.Combine([Temporary Support Reason], ";")