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
paragchaudhari
Regular Visitor

Top N skips all remaining values after it encounters a value that does not meet another filter

I am trying to display top 3 average performances for the year in a clustered column chart. My visual level filter is that they should have worked more than 100 hours during the entire year. The data in the table is on a monthly basis.
The top 3 works perfect if all the three performers have worked over 100 hours, however if any one of the performer has worked less than 100 hours, the chart does not show the next performer in the table. In one of the cases, the third performer has worked less that 100 hours, so the visual just shows top 2 performers. What can I do to show exactly top 3 performers who have worked over 100 hours?

 

Visual filters screenshot:

https://tinyurl.com/sdyg4vp

 

Chart screenshot:

https://tinyurl.com/tseph5x

1 ACCEPTED SOLUTION

@paragchaudhari see attached, I have added bunch of measures to break everything into pieces. hope this helps.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

@paragchaudhari can you share sample data with expected output Read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thank you @parry2k for the solution. Is there an easier way to do this? I have 3 other metric based charts on which I have to rank people. Using this solution I will have to create total 8 new measures.

Hi @parry2k,

 

Below is the link to sample dashboard with a subset of data:

Link to Sample dashboard 

 

For year 2018, the chart shows just 2 values with hours worked filter applied while without the filter it shows 3 values.

@paragchaudhari see attached, I have added bunch of measures to break everything into pieces. hope this helps.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.