on 07-02-2013 11:34 AM
I 'm trying to build a calculated column in Attribute view. In expression editor I'm trying to build a formula like "CITY" where "CITY" like 'ABCD'.
I get an Invalid expression warning.Can somebody let me know how to use Where clause inside the expression editor.In general where can I find the expression editor functions supported apart from the ones listed there?
Hi Sridhar,
First thing, what exactly do you mean by expression editor functions supported "apart" from ones listed there. Mostly only those functions are supported which are mentioned in the expression editor. You can find the details in the help (Press F1 and search for "Functions used in Expressions".
Secondly if you wish to use the WHERE condition, then you may have to use IF function, something like
if("CITY" = 'ABCD', "CITY", '')
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sridhar,
The expression editor used in Calculation column definition provides limited functionality. The WHERE condition for a column is also applicable in case of Restricted Column, but that is different from the Calculated Column.
I think, as per the documentation, using the IF condition is the only workaround available.
Can you please mention your exact requirement and what do you have in mind so that we can look into alternatives (even in the front end reporting tool) for your requirement.
Regards,
Ravi
If my understanding is correct that you are looking to filter with similar functionality as where in a SQL Statement, I believe you can use constraint filter, you can use filters either on normal columns or on calculated columns, right click on a column ( or calculated column) for context menu where you can find this option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.