Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Arundathi
Frequent Visitor

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
1 ACCEPTED SOLUTION
v-yohua-msft
Community Support
Community Support

Hi, @Arundathi 

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

vyohuamsft_0-1714714741907.png

 And click Group By

vyohuamsft_1-1714715005823.png

vyohuamsft_2-1714715016880.png

 

Close and apply, then create a new column:

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

 

Here is my preview:

vyohuamsft_3-1714715112002.png

 

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.

View solution in original post

1 REPLY 1
v-yohua-msft
Community Support
Community Support

Hi, @Arundathi 

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

vyohuamsft_0-1714714741907.png

 And click Group By

vyohuamsft_1-1714715005823.png

vyohuamsft_2-1714715016880.png

 

Close and apply, then create a new column:

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

 

Here is my preview:

vyohuamsft_3-1714715112002.png

 

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.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.