SPLIT(
(" , " & [PDF REPORT] & " , "),
(" , " & [CONSIGNMENTS ID] & " , ")
)
Example:
[PDF Report ] has list of values A,B,C,D,E,F,G
[CONSIGNMENTS ID] has value E
What will be the answer/result ?
Please Explain this expression
Solved! Go to Solution.
SPLIT(
(" , " & [PDF REPORT] & " , "),
(" , " & [CONSIGNMENTS ID] & " , ")
)
This expression is using the value of [Consignments ID] to split the value of [PDF Report] - more specifically its using the value " , E , ".
Assuming [PDF Report] is define as a List type and not Text then the value being split is " , A , B , C , D , E , F , G , "
When the SPLIT is applied the result you get depends on how the resultant column is defined.
Now your next question might be... What if I apply an INDEX() function? The result depends on WHEN you apply that INDEX() function. If you INDEX( , 1) in the same expression as the SPLIT your result is "A , B , C , D". See "Test 5" in image. However, if you INDEX() the resultant List column itself, you will only get "A" returned because the list had already been flattened out to just a List of Text.
Things can get really strange when you try managing List of Lists.
I hope this helps!
SPLIT(
(" , " & [PDF REPORT] & " , "),
(" , " & [CONSIGNMENTS ID] & " , ")
)
This expression is using the value of [Consignments ID] to split the value of [PDF Report] - more specifically its using the value " , E , ".
Assuming [PDF Report] is define as a List type and not Text then the value being split is " , A , B , C , D , E , F , G , "
When the SPLIT is applied the result you get depends on how the resultant column is defined.
Now your next question might be... What if I apply an INDEX() function? The result depends on WHEN you apply that INDEX() function. If you INDEX( , 1) in the same expression as the SPLIT your result is "A , B , C , D". See "Test 5" in image. However, if you INDEX() the resultant List column itself, you will only get "A" returned because the list had already been flattened out to just a List of Text.
Things can get really strange when you try managing List of Lists.
I hope this helps!
1. I really admire your efforts taken for explaining the expression by composing a lengthy para.
2. I am completely clear with your explanation. Even Google Bard and Chat Gpt has given wrong answers.
Thank you so much for your contribution.
With Regards,
Jaichith J
Bro, I could not understand above point . please explain little deeper.
--------------------------------------------------------------------------------------------------
(" , " & [PDF REPORT] & " , "),
above, part of the expression won't making the out put as ",A,B,C,D, F,G" instead of "A,B,C,D, F,G" ?
Yes you are right!!! I tested it but was typing it in from memory. Actually the resulting value is as shown below.
User | Count |
---|---|
14 | |
11 | |
9 | |
7 | |
4 |