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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
vlad_komarov
Partner - Specialist III
Partner - Specialist III

Set Analysis issue

Hello,

My data contains some names and # of days since some event.

I need to create a table chart that displays names only if #days fits in specific range:

<6 months, 6-12 months, 1 - 2 years, etc.

I thought it should be pretty simple, using the expression:

//for < 6 months:

only({<[Name] = {"=min(Days) < $(v6MonthsRange)"}>}[Name])

// for > 8 years:

only(

{<

[Name] = {"=min(Days) >= $(v8YearsRange)"}

>}

[Name])

These two expressions above are working fine.

I have a problems with the same approach for 6-12 months, 1 - 2 years, etc expressions:

only(

{<

[Name] = {"=min(Days) >= $(v1YearRange)"},

[Name] = {"=min(Days) < $(v2YearsRange)"}

>}

[Name])

See the attachment app for details.

What I am missing here?

Regards,

Vladimir

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try it like

only(

{<

[Name] = {"=min(Days) >= $(v1YearRange) and min(Days) < $(v2YearsRange)"}

>}

[Name])

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Try it like

only(

{<

[Name] = {"=min(Days) >= $(v1YearRange) and min(Days) < $(v2YearsRange)"}

>}

[Name])

vlad_komarov
Partner - Specialist III
Partner - Specialist III
Author

Thanks!

Not super elegant solution (considering Set Analysis other complicated options), but it works!

Regards,

Vladimir