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

ssrs 2012 sort with tablix and parameters

$
0
0

In an SSRS 2008 r2 report, I want to be able to allow the user to sort parameter values based upon the selection listed in the following screen shot listed at bottom of this post. The default value of the sort is set to value = 1.

I asked a version of this question on a previous post, but that sort only gave one sort parameter that could change. That previous post is: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b15d05f6-7a48-450b-adc4-bcc6e0fa3125/ssrs-2012-pass-parameter-multiple-values-to-sort?forum=sqlreportingservices .

However, I want to be able to change the order of which item is sorted first, second, third, and fourth. The code I have on the tablix sort is the following:

=IIF(Parameters!Sort.Value = 1, Fields!lastname.Value, IIF(Parameters!Sort.Value = 2, Fields!firstname.Value, IIF(Parameters!Sort.Value = 3, Fields!studentnumber.Value, IIF(Parameters!Sort.Value = 4, Fields!schoolname.Value, "4"))))

Can I allow the user to sort each item in an ascending or descending order? If so how?

I want the following sort to be used that is listed in the picture below, but the iif statement is not working, Thus can you show me what to change and/or if the previous link is the best I can accomplish?




Viewing all articles
Browse latest Browse all 10045

Trending Articles



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