Hi,
I am working on a start expression used to filter a report.
Note the report worked perfectly when its filter was just to grab the data from the table and order it.
Now I am trying to remove some potential rows from this report.
Here is the Expression:
ORDERBY(
FILTER(
Faults,
AND(LEN([Equipment])<=3),
[Equipment]<>โW14โ,
[Equipment]<>โW22โ,
[Equipment]<>โW23โ,
[Equipment]<>โW35โ,
[Equipment]<>โW38โ,
[Equipment]<>โW46โ)),
[Equipment],False)
As you can see I am creating requirements for the rows.
One is tha the length of the name in Equipment is equal to or less than 3.
This works correctly as tested by itself.
My next step was to remove specific results, I attempted this by creating and AND( in the select row portion of the filter expression. For some reason this fails and I cannot work it out.
Appsheet is telling me this expression does not produce a list of ref values?
Solved! Go to Solution.
Your parentheses are wrong:
Note too that a <<Start>>
tag must be a single line; it cannot contain line breaks (though line wrapping done by Docs/Excel/Word is okay).
Try this:
<<Start: ORDERBY(FILTER("Faults", AND((LEN([Equipment]) <= 3), NOT(IN([Equipment],{โW14โ, โW22โ, โW23โ, โW35โ, โW38โ, โW46โ})))), [Equipment], FALSE)>>
Your parentheses are wrong:
Note too that a <<Start>>
tag must be a single line; it cannot contain line breaks (though line wrapping done by Docs/Excel/Word is okay).
Try this:
<<Start: ORDERBY(FILTER("Faults", AND((LEN([Equipment]) <= 3), NOT(IN([Equipment],{โW14โ, โW22โ, โW23โ, โW35โ, โW38โ, โW46โ})))), [Equipment], FALSE)>>
Worked a charm thanks @Steve!
Yeah I had been trying every other way I could think of hense the incorrect parentheses.
Thank you for the tip on the Start tag, although mine was correct I just tried to make it more legible.
So the issue I had was not making each section of the and statement a seperate item so to speak with brackets?
The NOT(IN( system is a lot better in every way (I tried this way earlier but couldnt get it working) but effectively works the same no?
The expression you posted had extra โstuffโ after the closing parenthesis of the ORDERBY() function. I suspect that extra confused the editor, leading to errors.
It is functionally the same, but more efficient.
I had a similar problem with a workflow template. After trying tons of different troubleshooting efforts, it finally worked when I took out all the returns in the very long expression. Itโs interesting that in the expression editor you can space it out pretty much anyway you want for readability but canโt do that at all with a Start expression.
User | Count |
---|---|
41 | |
28 | |
28 | |
23 | |
13 |