Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm a newbie and need help for my table that contains customer purchases (TranId) from various channels (ChannelId).
Instead of having multiple records for the same customer transaction (TranId), I would like to have one record having a comma-delimited value listing of the channels (ChannelId) - either on the same or a new column - whichever is simpler to create.
For example below, Customers A and C should have just one record having a comma-delimited value listing of various channels (ChannelId).
Current
Customer | TranId | ChannelId |
A | 1 | 10 |
A | 1 | 11 |
B | 2 | 10 |
C | 3 | 11 |
C | 3 | 12 |
D | 4 | 13 |
D | 5 | 10 |
Result
Customer | TranId | ChannelId |
A | 1 | 10,11 |
B | 2 | 10 |
C | 3 | 11,12 |
D | 4 | 13 |
D | 5 | 10 |
I appreciate any help!
Solved! Go to Solution.
Hi @Anonymous ,
Concatenatex =
CALCULATE (
CONCATENATEX ( 'Table', 'Table'[ChannelId], ", " ),
ALLEXCEPT ( 'Table', 'Table'[TranId] )
)
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
Hi @Anonymous ,
Concatenatex =
CALCULATE (
CONCATENATEX ( 'Table', 'Table'[ChannelId], ", " ),
ALLEXCEPT ( 'Table', 'Table'[TranId] )
)
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
25 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |