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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Weekly Top 5

Hello,

 

Fairly new to BI and I have built a YTD, weekly, column chart that displays our customer service teams top case issues, per category. When I filter the "Issues" to only display the top 5 (by count), it's giving me the top 5 issues over the year. I need to see the top 5 issues per week and I'm not sure how to make this work. I've attempted a measure, in which I'm attempting to calculate the issues per week, and it works if I select a specific week(with slicer date selection), but not on the overall YTD chart. I have included a snippet of the column chat, but I can't provide much more data. Thanks in advance.

 

Breakdown:

YTD column chart

Y axis = count

X axis = week

Data = "Issue" per "Category"

 

Current: Providing top 5 "Issues" for the year. 

Need: Top 5 "Issues" per week

 

Chart.JPG

7 REPLIES 7
Jpalji
Frequent Visitor

Hello @Anonymous ,

 

Try creating a table with DAX function TOPN  .

I have a table called the city as follows:

 

city1.png

 

 

 

 

 

Created a new table using TopN function as following :

city2.png

 

 

 

 

Hope this helps.

VK

Anonymous
Not applicable

Hi @Jpalji ,

 

Thanks for the response. I've looked into TOPN, but when I've attempted this function I get the top 5 issues for the year, and not for each week. I've done quite a bit of research and can't figure out how to make this function work for my week over week visual. 

lc_finance
Solution Sage
Solution Sage

Hi @Anonymous ,

 

 

the solution would be to filter the table for calculating the top 5 issues per week.

You can filter a table either using FILTER or using CALCULATE.

 

Are you able to share a Power BI sample file? (of course not with real data, but sample data)

I'd need to take a look at your PBI file to better understand your model and provide you with more help.

 

Regards

 

LC 

Interested in Power BI and DAX tutorials? Check out my blog at www.finance-bi.com

Anonymous
Not applicable

Hi @lc_finance ,

 

Thank you for the response. I have attached a snippet of a table I built. I hope this give you an idea of how our data model is being built. I am currently using a calculate measure to try and pull my top 5 per week, however, the issue I have currently is that it will only show the top 5 for the year. The only way I can see the top 5 per week is by using a Slicer and pulling it week by week, but I need to see it week over week as shown in my previous post. 

 

Sample Data: I'm pulling thousands of cases and trying to pull top 5 issues per category, per week.Data Model.JPG

 

Individual week pulled for a category.

Individual Week.JPG

Thank you @Anonymous  for your reply.

 

To help you further, could you share a sample Power BI file?

That would make it a lot easier to understand the issue and help you.

 

Regards

 

LC

Anonymous
Not applicable

Hi @lc_finance ,

 

I'm unable to share files from my one drive at work (internal only) and I don't have access to dropbox for file sharing. It doesn't look like I have a file attachment option within the forum either. 

Hi @Anonymous ,

 

 

you are right, there is no option for file sharing in the blog.

However, creating a One Drive or Google Drive account should be free if you want to try that way.

 

Regards

 

LC

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors