The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi All,
I have source data which is contain row level process step and i need to split into column level data in edit query transformation level.
ex: source file
Expected result using edit query: (Process row steps (input,reject,input2,review,review2,print) need to convert into column level with IN and OUT time)
result:
thanks,
Solved! Go to Solution.
Hi @MSuser5 ,
Here are the steps you can follow:
1. Go to Power Query – check [IN], [Out] – Unpivot Columns.
Result:
2. Transform – Group -- [ID] – Operation:All Rows.
3. Add Column – Custom Column – Enter the following code.
Table.AddIndexColumn([Count],"Rank",1,1)
4. Selected [Count] – Remove.
5. Expand [Custom] - Do not select column [ID] - OK.
6. Select the three columns [Custom.Process], [Custom.Attribute], [Custom.Rank] -- right mouse button – in the Merge Column interface – to set the information at the yellow label.
7. Select [Merged] -- Transform – Pivot Column.
Value Column -- [Custom.Value].
Advanced options – Don’t Aggregate.
8. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @MSuser5 ,
Here are the steps you can follow:
1. Go to Power Query – check [IN], [Out] – Unpivot Columns.
Result:
2. Transform – Group -- [ID] – Operation:All Rows.
3. Add Column – Custom Column – Enter the following code.
Table.AddIndexColumn([Count],"Rank",1,1)
4. Selected [Count] – Remove.
5. Expand [Custom] - Do not select column [ID] - OK.
6. Select the three columns [Custom.Process], [Custom.Attribute], [Custom.Rank] -- right mouse button – in the Merge Column interface – to set the information at the yellow label.
7. Select [Merged] -- Transform – Pivot Column.
Value Column -- [Custom.Value].
Advanced options – Don’t Aggregate.
8. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Great, thanks
Hi @MSuser5 ,
Here are the steps you can follow:
1. Go to Power Query – check [IN], [Out] – Unpivot Columns.
Result:
2. Add Column – Index Column – From 1.
3. Select the three columns [Process], [Attribute], [Index] -- right mouse button – in the Merge Column interface – to set the information at the yellow label.
4. Select [Merged] -- Transform – Pivot Column.
Value Column -- [Value].
Advanced options – Don’t Aggregate.
5. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @v-yangliu-msft ,
when we have bulk data index creating till the values ... its not getting appending the ID level data attached sample test file kindly check and suggest how to achive only process level should be 6 columns only.
PBIX file https://drive.google.com/file/d/15FZYD9A0dq-PJwFfpNRi1qMeA9AF2lZE/view?usp=sharing
i have around 100 ID records hence it's generating 100 process level columns.
but it should be only 6 columns
Thanks
Based on your sample data, which six columns would you expect to see?
Please do not do that. It is the opposite of what Power BI is about. You can easily show the data in a matrix visual like that (although I would also recommend you reconsider) but please don't do that. Quite the opposite, you should unpivot your data even more
ID | Process | Type | Date
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
122 | |
85 | |
77 | |
55 | |
48 |
User | Count |
---|---|
136 | |
128 | |
78 | |
64 | |
63 |