- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Concatenation of 2 column
Hello guys.
I'm actually blocked with my problem and can't find a solution that i understand with actual level on Power Query.
As you can see, i have a table that contains ids. In the cms_visitreportid, you can find at times the same id.
My goal is to have one unique line for each visitreportid but with all user_representativeid like below :
cms_visitreportid | User 1 | User 2 | User 3 | User 4 | User 5 | User 6 | User 7 |
XXXXXXXXX | x | x | x | x | x | x | x |
XXXXXXXXX | x | x | x | x | x | x | x |
XXXXXXXXX | x | x | x | x | x | x | x |
PS : In the table above, the "x" are representing "cms_cms_visitreport_user_representativeid" for each "cms_visitreportid" line. A single Visit Report can have a multitude of users so i can't just give a maximum number of columns.
Thank you in advance !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Syndicate_Admin , @Whyppie
First, add a column that maps the [cms..representativeid] to the column names that you want to end up with.
You will probably want to merge a reference list to your table to achieve this.
Once you have this new column, select it ad go to Transform tab > Pivot Column.
Select [cms..representativeid] in the 'Values Column' dropdown.
Expand Advanced Options and set 'Aggregate Value Function' to 'Don't Aggregate'.
Pete
Now accepting Kudos! If my post helped you, why not give it a thumbs-up?
Proud to be a Datanaut!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Syndicate_Admin , @Whyppie
First, add a column that maps the [cms..representativeid] to the column names that you want to end up with.
You will probably want to merge a reference list to your table to achieve this.
Once you have this new column, select it ad go to Transform tab > Pivot Column.
Select [cms..representativeid] in the 'Values Column' dropdown.
Expand Advanced Options and set 'Aggregate Value Function' to 'Don't Aggregate'.
Pete
Now accepting Kudos! If my post helped you, why not give it a thumbs-up?
Proud to be a Datanaut!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
Thank you very much it works like a clock !

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
05-09-2024 06:30 PM | |||
05-24-2024 01:18 AM | |||
09-14-2021 05:45 AM | |||
12-13-2023 05:17 AM | |||
06-27-2024 12:53 AM |