Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Ranking Columns

 

Hi

I would like to create a top 5 defect list with the data you see below. I am trying to combine all the columns named defect in a way, that I do not lose the identity of the rows (there is more data to the left).
I thought I had it by unpivoting the defect columns then use grouping. What I found out was that the rows that didn’t have a defect were gone after I did that. Is there a way around this?
Thanks
John

 

3 Replies

  • v-zhenbw-msft's avatar
    v-zhenbw-msft
    Community Support

    Hi Anonymous ,

     

    Sorry for that we don’t understand your issue clearly.

    What conversion operations did you do in Power Query? Do you want to merge the three defect columns into one like the following screenshot and calculate the Top 5 based on points?

     

     

    If it doesn’t meet your requirement, could you please provide a mockup sample  based on fake data or describe the fields of each tables and the relations between tables simply?

     

    It will be helpful if you can show us the exact expected result based on the tables.

     

    Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.

     

    Best regards,

     

    Community Support Team _ zhenbw

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • mussaenda's avatar
    mussaenda
    Community Champion

    You can duplicate the all  the defects column and then unpivot them.

    You will not lose the data with null defects.

  • v-zhenbw-msft's avatar
    v-zhenbw-msft
    Community Support

    Hi Anonymous 

     

    How about the result after you follow the suggestions mentioned in my original post?

    Could you please provide more details or expected result about it If it doesn't meet your requirement?

     

    Best regards,

     

    Community Support Team _ zhenbw

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.