[英]SSRS concatenating parameters values to obtain date in the end
hi guys i have the expression below which i am trying to use to concatenate some int param values and one int value. 嗨,大家好,我有下面的表达式,我试图用它来连接一些int参数值和一个int值。
In the end i want a date for the last day of the month based on what the user selected. 最后,我希望根据用户选择的日期来表示月份的最后一天。
Spent all day on this, couldn't find anything in stack. 花了整整一整天的时间,找不到堆栈中的任何内容。
=Parameters!Year.Value & 10 & IIF(LEN(Parameters!Period.Value) <= 1,0 &
Parameters!Period.Value,Parameters!Period.Value)
假设“ Period”是月份,则您最有可能寻找以下内容:
=DateSerial(Parameters!Year.Value, Parameters!Period.Value, 1).AddMonths(1).AddDays(-1)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.