Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Get distinct Course ID for each user

Hi Team

I have table like below  which has multiple columns for each user for each question in the feedback form but the submitted feedback and total feedback for that particular user is same for each question is been asked. I want only one row for each user to calculate submitted feedback*100/total feedback like for first three rows it should be like 5*100/20 = 25. I would like to create a graph with the value is generating

Course IDCountryUserstartdatesubmitted feedback total feedbackMaterial contentResponse IDquestion type idquestion type name
12345USAABC01-01-2024520Agree1011matrix
12345USAABC01-01-2024520Yes6905Yes/NO
12345USAABC01-01-2024520Great9897free text
23456UKXYZ13-01-2024815Yes8302Yes/No
23456UKXYZ13-01-2024815 1205Freetext
23456UKXYZ13-01-2024815Great6787Matrix
56788USAHK02-02-2024510Yes1605Yes/NO
56788USAHK02-02-2024510Great1287Matrix
78901UKAK09-02-2024830Yes6781Yes/NO
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi, Anonymous 

    You can then use group by in PowerQuery to achieve the effect you want. Select the desired columns

     And click Group By

     

    Close and apply, then create a new column:

    Feedback Percentage = [submitted feedback]*100/[total feedback]

     

    Here is my preview:

     

    How to Get Your Question Answered Quickly 

    Best Regards

    Yongkang Hua

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

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi, Anonymous 

    You can then use group by in PowerQuery to achieve the effect you want. Select the desired columns

     And click Group By

     

    Close and apply, then create a new column:

    Feedback Percentage = [submitted feedback]*100/[total feedback]

     

    Here is my preview:

     

    How to Get Your Question Answered Quickly 

    Best Regards

    Yongkang Hua

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