The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I'm not sure that this can be done easily, but I have a table that holds multiple events in a single row. I need to break those events out into their own unique row to use in a visual. My dataset is fairly large and I can't change the structure unfortunately.
Here is an example of what I have vs. what I need to achieve:
Any help is greatly appreciated, thank you!
Solved! Go to Solution.
Hi @Azurine13
I decided to do this in Power Query. Fortunately, there is no coding. The steps are as follows:
1. I merged the Break 1 columns into a single column with delimiter as "|". (Select all 3 columns, right-click and select Merge Columns.)
2. I merged the Break 2 columns into a single column with delimiter as "|".
3. After selecting [Name], [Department], and [Date], Unpivot Other Columns.
4. I removed the [Attribute] column.
5. I split the [Value] column By Delimiter with delimiter set to "|".
6. I filtered to get rid of blank rows.
7. I renamed the columns.
I can't believe it was this easy, thank you so much!! I was able to follow your instructions perfectly.
Hi @Azurine13
I decided to do this in Power Query. Fortunately, there is no coding. The steps are as follows:
1. I merged the Break 1 columns into a single column with delimiter as "|". (Select all 3 columns, right-click and select Merge Columns.)
2. I merged the Break 2 columns into a single column with delimiter as "|".
3. After selecting [Name], [Department], and [Date], Unpivot Other Columns.
4. I removed the [Attribute] column.
5. I split the [Value] column By Delimiter with delimiter set to "|".
6. I filtered to get rid of blank rows.
7. I renamed the columns.
User | Count |
---|---|
56 | |
54 | |
53 | |
47 | |
30 |
User | Count |
---|---|
175 | |
88 | |
69 | |
48 | |
47 |