-LIST("") not working

Iโ€™m trying to get the following formula to work so that it builds a list and removes the blanks:

(
LIST(
ANY(Select(Pricelist[โ€ฆ,
ANY(Select(Pricelist[โ€ฆ,
ANY(Select(Pricelist[โ€ฆ,
ANY(Select(Pricelist[โ€ฆ
)
-LIST("")
)

But i keep getting this kind of output:
3X_3_8_382453c90866f0eb2fe048f0e52dc421d5926692.jpeg

Iโ€™ve tried using Unique(), -LIST(""), -LIST(" ") and changing the list item formula to be
IF(ISBLANK(ANY(Select(Pricelist[โ€ฆ),ANY(Select(Pricelist[โ€ฆ,"")

Nothing works, I always eand up with a leading comma. Which is a PITA because what Iโ€™m trying to do is generate a list of figures, order them low to high, then pick the first item. But this does not work because I always have a leading comma

Anyone any ideas?

0 14 266
14 REPLIES 14

Try if statements around your ANY that if the ANY is blank then โ€œValue you cant getโ€ and then -List(โ€œValue you cant getโ€).
I am 95% sure -List() should unique the list. Maybe a bug.

Tried IF(โ€ฆ,โ€ฆ,โ€œFooโ€) and then -LIST(โ€œFooโ€). Always shows foo at least once

What happens if you remove the -LIST("") away? Does it give you a list correctly?

Removing the -LIST("") make absolutely no difference.

The only thing even slightly unsual about this is the equation is in a โ€œSet the values of some columns in this rowโ€ action. Which itself is called by an โ€œexecute an action on a set of rowsโ€. Everthing about the formula is fine except the -LIST("") not working. So Iโ€™ve tried the exact same formula as well as a virtual column. Which works absolutely fine. So must be a bug, Iโ€™ll email support@

Perhaps - LIST(DECIMAL("")) or - LIST(NUMBER(""))?

The column type is Price, but Iโ€™ll try bothโ€ฆ

Wow @Steve your the man!

-LIST(DECIMAL("")) works fine Iโ€™ll let support know as its still an issue to me that a virtual column gets a different result from a action formula.

How so?

How do I stop this forum automatically taking out commas etc in a string of text?

Use markdown.

LIST("A","","B","",C","") should give A,,B,,C,

LIST("A","","B","",C","") -LIST("") should give A,B,C

LIST(โ€œAโ€,"",โ€œBโ€,"",C","") -LIST("") in an action formula gives the top (wrong) result as it removes the duplicates but not the blanks. So its not implementing the -LIST("") bit correctly

LIST(โ€œAโ€,"",โ€œBโ€,"",C","") -LIST("") in a virtual column gives the bottom correct result

Expressions are evaluated by different code in the app and on the servers. Actions are evaluated in the app, but virtual columns are updated in bulk by servers. This appears to be an inconsistency. I urge you to report it to support@appsheet.com.

Its already been reported

Top Labels in this Space