Hi Community,
After playing with Power Query, I can officially say that I'm stuck.
I have source data as shown below.
the requirement is to denormalize the above data to be denormalized as shown below
Appreciated for the Help,Thank You.
Solved! Go to Solution.
Hi @naga449 ,
So you can do it something like shown in steps below.
Consider the data as follows:
Then I created a custom column in Power Query editor, to get the split of both Rank and Grade columns in a single step as a Table:
Formula for custom columns:
Table.FromColumns(
{
Text.Split([Rank], "|"),
Text.Split([Grade], "|")
},
{"Rank", "Grad"}
)
Once this is created a column is created which can be expanded to extract the final split on columns:
Click on the Expand icon as highlighted in above picture and you see the columns:
Once you expand them you get the resultant columns:
You can simple rename the new columns and delete the previous ones and you get the desired results:
Hope the solution helps.
Hi @naga449 ,
So you can do it something like shown in steps below.
Consider the data as follows:
Then I created a custom column in Power Query editor, to get the split of both Rank and Grade columns in a single step as a Table:
Formula for custom columns:
Table.FromColumns(
{
Text.Split([Rank], "|"),
Text.Split([Grade], "|")
},
{"Rank", "Grad"}
)
Once this is created a column is created which can be expanded to extract the final split on columns:
Click on the Expand icon as highlighted in above picture and you see the columns:
Once you expand them you get the resultant columns:
You can simple rename the new columns and delete the previous ones and you get the desired results:
Hope the solution helps.
User | Count |
---|---|
106 | |
82 | |
72 | |
48 | |
48 |
User | Count |
---|---|
157 | |
89 | |
81 | |
69 | |
67 |