Updated doc: List Expressions and Aggregates

Steve
Platinum 4
Platinum 4

Completely rewritten.

Feedback welcome.

9 7 828
7 REPLIES 7

Very nicely formatted!!

I recall some discussion around List subtraction when the subtracted value appeared multiple times in the original list. Could you add an example to the Constructing a List with Subtraction section of what happens when you subtract the list {โ€œBobโ€} from the original sample list in that section?

Not clear to me what this would demonstrate.

Does this:

({ "Bob", "Mary", "Bob", "Alice" } - { "Bob" })

Equal this:

"Mary", "Bob", "Alice"

Or this:

"Mary", "Alice"

?

I donโ€™t remember the result from the post and I can test it myself.

I just thought it might be beneficial to indicate in the article whether the subtraction removes only the first occurrence or ALL occurrences.

Got it! Good point! Done.

Felt inspired huh?!

Very nice thank you @Steve I again learned some things

Could you add EnumList?
And perhaps an Example like this?

I considered tackling the difference between List and EnumList, but those are (technically) column types and have no distinction within expressions. Within expressions, both List and EnumList are lists. I feel the distinction is better left to the column type docs.

As for the example you referenced, Iโ€™ll have to think about it. I want to be careful about getting too expansive in an already long article.

Top Labels in this Space