March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I'm relatively new to Power Query and I'm just trying to get my head wrapped around a problem, so I'm looking for some general advice.
I have a table of 5k People. One of the columns is "Events", which is a string of comma-separated ID numbers, each number corresponding to a entry on the Event table.
The Event table has 40 Events with 3 columns: ID, Name, and Type. There are 4 event types.
I want to find out how many events of each type each person has been to.
So in general I need to break up a person's string of comma-separated event IDs, match each event ID to the Event table and find out what kind of event it was, and the keep a running tally of events of each type each person has been to.
Any thoughts on the best way to get this? I could resort to VB for this, but I'm trying to learn Power Query so I'm going to see if I can solve it this way if possible.
Thanks,
Dan
Solved! Go to Solution.
Select the events column of your people table, select "Split Column by Delimiter", specify comma as the delimiter, and then under Advanced options select "Split into Rows" .
Select the events column of your people table, select "Split Column by Delimiter", specify comma as the delimiter, and then under Advanced options select "Split into Rows" .
Ah, OK, so from that I can make a join table, People-Events. From there I played around with merging tables and pivot columns and now have it giving me the desired results. I'm sure I can work on optimization because it takes quite some time to process, but this definitley was a nudge in the right direction. Thanks, @lbendlin !
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
16 | |
13 | |
12 | |
9 |
User | Count |
---|---|
34 | |
31 | |
20 | |
19 | |
17 |