Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi Team,
I have data ( input data provided here). Every employee has specific targets and so their manager's too.
I want fillter manager and get their suboardinate's results.
for same, i need to transoform data in "output required" format.
would you please help me on this.
Solved! Go to Solution.
Hi , @Narendra90
Thanks for your sample data and end ressult first!
Here are the steps you can refer to , we can realize it in Power Query Editor.
(1)This is my test data :
(2)We can click "Custom Column" in "Add Column" to create columns:
You need to imput the M code and the column name in the box :
SR Manager
try Table.SelectRows(#"Changed Type",(y)=> y[Emp]=[Manager] )[Manager]{0} otherwise null
(3)We can follow the upper step to create the second column :
Group Head
try Table.SelectRows(#"Changed Type",(y)=> y[Emp]=[SR Manager] )[Manager]{0} otherwise null
(4)Then we can filter the [Group Head] <> null then we can meet your need:
The end result is as follows:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi , @Narendra90
Thanks for your sample data and end ressult first!
Here are the steps you can refer to , we can realize it in Power Query Editor.
(1)This is my test data :
(2)We can click "Custom Column" in "Add Column" to create columns:
You need to imput the M code and the column name in the box :
SR Manager
try Table.SelectRows(#"Changed Type",(y)=> y[Emp]=[Manager] )[Manager]{0} otherwise null
(3)We can follow the upper step to create the second column :
Group Head
try Table.SelectRows(#"Changed Type",(y)=> y[Emp]=[SR Manager] )[Manager]{0} otherwise null
(4)Then we can filter the [Group Head] <> null then we can meet your need:
The end result is as follows:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
85 | |
84 | |
65 | |
62 | |
55 |
User | Count |
---|---|
171 | |
109 | |
105 | |
73 | |
71 |