Quantcast
Channel: SQL Server Reporting Services, Power View 포럼
Viewing all articles
Browse latest Browse all 24955

Default parameter to current year in SSRS Report

$
0
0

Similar questions have been asked but none have helped me to do what I need done.

I have a report parameter that selects a year. This list is populated through a dataset which is from a SSAS data source. I have one for Year and one for Calendar month and they are both dimensions of [Allegation Closed Date].


Right now it is set so that the default parameter value has to be changed manually but I want to always make it the current year so I dont have to do this every single year. The default values are set as "specify values" with a value of:

[Allegation Closed Date].[Year].&[2013]

[Allegation Closed Date].[Calendar Month].&[2013-01]


In the brackets where it says 2013 I have tried all the different expression strings I can think of to get the current year but none have worked. I also tried creating a new dataset field named CurrentYear and then using those same functions in the field source so I could just add [CurrentYear] instead of [2013], but this also did not work.

Could someone please explain to me what I am doing wrong here and why this is not working as it should?




Viewing all articles
Browse latest Browse all 24955


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