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
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
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
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.