Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set analysis writing

Hello,

i have a problem with set analysis syntax, this :

MaxString({<Année={2016},[Numéro de prospectus]={$(=subfield(concat( {<Année={2016}>}DISTINCT [Numéro de prospectus],';'),';',2))}>}[Libellé de prospectus])

doesn't work.

Do you have some idea ?

Thanks

Sophie

Labels (1)
1 Reply
Miguel_Angel_Baeyens
Support
Support

What is the problem? You see no data? Is there any error in the object? Is it a text object or a table?

Two things I can think of without more background:

  • If you are expecting a string (not a number) then you need to use a single quote for the Numéro de prospectus field:

MaxString({<Année={2016},[Numéro de prospectus]={"$(=subfield(concat( {<Année={2016}>}DISTINCT [Numéro de prospectus],';'),';',2))"}>}[Libellé de prospectus])


  • Also, try the SubField() function separately and make sure it returns as expected, one single value

EDIT: Set to double quotes because of the use of single quotes already in the functions.