on 08-31-2016 3:06 AM
In a graphical Calculation View, I've created a single input parameter. P_START_DATE
The notion is that if the user does not supply a date, the beginning of the period should be used, otherwise the user_specified_date should be used to filter table.
No matter what I do, $$P_START_DATE$$ evaluates to a nonnull value in any runtime expression but when copied to a calculated column, it displays as <NULL>.
I've tried setting the default to constant NULL, expression null.
I've tried setting the value of a calculated column L_START_DATE with nullif and if(isnull()). Oddly, this column will display as <NULL> in the preview.
Puzzling.... But if this is the case, what's the point of a nonmandatory prompt?
Bug? SPS11
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi James ,
To let you know, adding to the blog results shared by Raj, if you feel like you don't want to auto populate the default value ( if the user has to enter a value he has to clear the value and re-enter )
You can keep the expression like below instead of checking with NULL and this would work as well
Regards,
Krishna Tangudu
As I was playing with this, I tried a scalar UDF. I could not even assign it. I think that's odd.
Raj's solution worked for me (I needed to set the value of an interim calculated column that does need to be used in other calculations and procedures. This seems to have solved the runtime order). I'll keep the expression solution in my bag as well for simpler calculations.
Thanks, everyone, for the speedy and educational responses!
can you explain with some screenshots?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.