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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Bakhtawar
Post Patron
Post Patron

Top 5 year

Hi all

 

I am trying to get top 5 year from field .. for this i select TOP N and write 5 but this shows me like this

2011

2014

2015

2016

2017

 

2013 is disappear

 

check picture

 

12.png

 

 

But when i write 8 or 10 then 2013 year appears check image

13.png

 

 

how i get 2013 in top 5 ?

6 REPLIES 6
v-xicai
Community Support
Community Support

Hi  @Bakhtawar  ,

 

Does that make sense? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

v-xicai
Community Support
Community Support

Hi @Bakhtawar ,

 

You may put the related 'calendar table'[Date] instead 'fact table'[CLM_INTM_YEAR] into box under "By value" option.

 

Best Regards,

Amy

 

Community Support Team _ Amy

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

Anonymous
Not applicable

Hi @Bakhtawar ,

 

Please check the Data type of the column , Make sure it is In number format.

 

Thanks,

RSD

yes this is in whole number format

amitchandak
Super User
Super User

When you use Top 5 , it based on Measure or value and filter will happen based on that. To display 5 year, you can sort on year and restrict the records to 5
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
AnkitBI
Solution Sage
Solution Sage

Hi @Bakhtawar 

 

That's an intersting issue that even I was not aware of. I have done some finding, it seems the issue is because when you use CLM_ITIM_YEAR in "By Value", the system is checking for aggregate value SUM(CLM_ITIM_YEAR) in table instead of individual value like 2012,2013,2014 etc. Hence, Top 5 CLM_ITIM_YEAR are returned excluding 2013.

 

Please check below post for detailed information.

https://community.powerbi.com/t5/Desktop/Bug-in-the-top-N-function/td-p/225987

 

Thanks
Ankit Jain
Do Mark it as solution if the response resolved your problem. Do Kudo the response if it seems good and helpful.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.