Move duplicate to a new column

Hi there!

I would like to automatically move duplicates to a new column. How to do this in the Query Editor. I have attached a pbix, sample data, and a screenshot that explains this well.

Hope you can help, thank you!

Supervised Projects.zip (179.8 KB)

Hi @powerbideveloper

Here is the solution.


Supervised Projects.pbix (34.5 KB)

1 Like

Thanks so much, @Rajesh! Where can I get a lot of this coding examples using the interface you’ve used?

@Rajesh,

One thing I noticed is that the supervisor_id column has to be in Ascending Order for the Max to work.

Is there a way to do this same thing if there are triplicates. In other words, create a second new column with the 3rd supervisor names in that column?

@powerbideveloper

yes there are n number of ways to get the desired output.

Supervised Projects.pbix (39.4 KB)

1 Like

This looks great, @Rajesh! I will try it out in the morning, nearly midnight here. Thanks so much!