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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ces
Frequent Visitor

Filter by response rating scale

Hello, I need your help
 
I have this table that registers a list of clients and their answer to a valuation question asked at different times, what I need is to get a table filtered by unique clients but taking the best answer they have given no matter when they did it.
 
Question.PNG

Thank you in advance
1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi Ces,

 

To achieve your requirement, click query editor-> Merge Queries.

Capture.PNG 

 

After merged, the new table is like below:

2.PNG 

 

After close&applied, create a measure using DAX below:

Best Answer = CALCULATE(MAX(Merge1[Answer]), FILTER(ALLEXCEPT(Merge1, Merge1[Name]), Merge1[Value] = MAX(Merge1[Value])))

3.PNG 

 

Regards,

Jimmy Tao

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi Ces,

 

To achieve your requirement, click query editor-> Merge Queries.

Capture.PNG 

 

After merged, the new table is like below:

2.PNG 

 

After close&applied, create a measure using DAX below:

Best Answer = CALCULATE(MAX(Merge1[Answer]), FILTER(ALLEXCEPT(Merge1, Merge1[Name]), Merge1[Value] = MAX(Merge1[Value])))

3.PNG 

 

Regards,

Jimmy Tao

Thank you very much Jimmy
 
Works perfectly as intended, but, sorry to bother you a little bit more.
in the solution obtained how it would be possible to count the number of customers who responded "Very Good", "Good", "Regular", etc.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.