Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Top 5 and Bottom 3 with colours in SSRS

$
0
0

Hi All,

I have to display Top 5 values in 'Green' and Bottom 5 in 'Red' out of some data.

Ex: my data is as below 

 
IDMarks
198
262
389
497
592
667
770
880
985
1077
1179
1272
1371
1478
1555
1656          

expected result is : if the marks are >= 80 then 'Green' (pick only top 5)  if marks are <= 70 then 'Red' (pick bottom 5) else 'Black'

As per my data even though we have values >=80 for more than 5 students display only top 5 in Green and same rule applies for Bottom 5 that means

ID 's : 1 ,3 , 4 , 5, 9 and their marks in Green (pick only Top 5 ) even though we have 6 students who got >=80

ID's : 2 , 6, 16 , 15 and their marks in Red (Bottom 5 but we have only 4 students who got <=70 )

Please let me know if you want more details,

Thanks,

Sam


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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