Count items (all) in a dynamic multi choice field
There is probably a simple answer, but I've been scratching my head here....
I create a MultiChoice (dynamic) field and the contents come from a "select" statement filtering records from a table.
I know how to count and get the Ids of CHOSEN elements using NUMBERS (not chosen)
But...how do I count the number of listed items - chosen and not chosen? Documentation would appear to suggest using "length(MCD)" - but that does not work at script approval level.
Platform MacOS
Thanks in advance....
8 replies
-
You could repeat the select in a formula field and count the members of the resulting array.
count(select table where field1 = value1)All other options seem to give the number of selected items
Regards John
-
said:
but I am referencing an MCD where there is a choice of "select" functions and addressing the field from another routine.I think was talking about is to put the same code you have in the dMC field into another formula field but instead of returning an array, put count() or length() around it.
-
and - I shall retype my last, with autocorrect OFF!
Season's Greetings.🎄
Thanks both. I've done what you suggested and it does the job. Thanks for the help here. Seems I was trying to find something that didn't exist!
plodding on.....
Content aside
- Status Answered
- 4 days agoLast active
- 8Replies
- 32Views
-
3
Following
