Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Year wise Sum for upto 10 users using script editor

$
0
0

Hello,

I have list named as "Credits" which includes column as : User Name, Credits earned, Earned on.

Suppose it contains data as below:

=====================================

User NameCreditsEarned On
Jay1501-Feb-20
Jesper1001-Jan-20
Jay2005-Feb-20
Mads10015-Jan-20
Jay1501-Feb-19
Jesper100

1-Jan-19


Monika             250      14-Feb-20

Adi                   300      16-Feb-20

Alexa              100         1-Jan-20

=====================================

So, I want to display details in web part as follow:

Jay = 350

Adi = 300

Monika = 250

Alexa = 100

Jesper = 100

=====================================

I am able to display users depending upon "Credits" column in Descending order with code mentioned at : 

https://social.msdn.microsoft.com/Forums/office/en-US/eb468257-60c8-4c52-adab-854a7e6845cd/year-wise-total-sum-for-per-user-using-script-editor?forum=sharepointdevelopment

Need help on below:

How to get this result only for top 5 people and also if 2-3 people having same credits/points then can their name be sorted on "Ascending" order?

Thanking you in advance.

Have a nice day.

Regards,

Jayashri


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>