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 there,
Need help here, how can I convert below in Power Query? need to remove the duplicates in the right columns, then shift the columns without duplicates from left to right for each row
Thanks in advance!
Cheers
Walter
Solved! Go to Solution.
Hi @Walter_W2022 ,
Here you can open the advanced editor:
To the left of the "=" sign are the names of the individual steps; if they contain special characters (e.g. spaces), they must be nested outside #"".
Our previous step name was #"change type", so here we replace PreviousStepName with #"change type" and you can replace this step name as required.
Finally we need to return the result of the Custom1 step, so the result after in needs to be changed to Custom1.
Result.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
NewStep=#table(Table.ColumnNames(PreviousStepName),Table.ToList(PreviousStepName,each let a=List.Count(_) in List.LastN(List.Repeat({null},a)&List.Distinct(_),a)))
Thank you for your reply, sorry, I could not make it work, would you please explain a bit more? as I am not familiar with M code. especially what does #table mean? how should I replace it?
Hi @Walter_W2022 ,
Here you can open the advanced editor:
To the left of the "=" sign are the names of the individual steps; if they contain special characters (e.g. spaces), they must be nested outside #"".
Our previous step name was #"change type", so here we replace PreviousStepName with #"change type" and you can replace this step name as required.
Finally we need to return the result of the Custom1 step, so the result after in needs to be changed to Custom1.
Result.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
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.