Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Select all values

Hello QV Experts

ActiveDocument.Fields("SheetID").GetPossibleValues will not fetch all values. But I want to include everything including duplicates. Please suggest.

Thanks & Regards
 

3 Replies
Not applicable
Author

Hi

try this

valuescommaseperated= ActiveDocument.Evaluate("Concat(distinct([Field Name]),',')")

valuesarray= Split(valuescommaseperated,",")

then use foreach loop as

for each value in valuesarray

     msgbox value

next

Not applicable
Author

do not use distinct if you want duplicates also.

Not applicable
Author

Hi Swapnil,

Below code fetches me only one value, whereas table contains 46 rows all are numbers.


valuescommaseperated= ActiveDocument.Evaluate("Concat([Indx],',')")

valuesarray= Split(valuescommaseperated,",")

msgbox(valuescommaseperated)
for each value in valuesarray

   msgbox value

next