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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multiple Condition in Set Analysis

Dear all,

I have a set of data similar to the following one.

pic2.jpg

I want to show the data above in a straight table. I have 2 variable, vFromDate and vToDate to control the range of creation date that will be shown in the table. Also, I want to disregard the effect current selection of Folder ID on the straight table. Finally, I want to show data with owner=o or viewer=v or administrator=a only.

I tried the following expression but it is not working as what i expected

sum({<[Folder ID]=,[Creation Date]={'>=$(=Date(vFromDate, 'YYYY-MM-DD'))<=$(=Date(vToDate, 'YYYY-MM-DD'))'}>*<Adminsitrator={'A'}+ Owner={'O'}+Viewer={'V'}>}[Size])

Would you please help? Thanks a lot.

3 Replies
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

I think the second part of your expression is what giving you trouble:

sum({<[Folder ID]=,[Creation Date]={'>=$(=Date(vFromDate, 'YYYY-MM-DD'))<=$(=Date(vToDate, 'YYYY-MM-DD'))'}>*<Adminsitrator={'A'}+ Owner={'O'}+Viewer={'V'}>}[Size])


Try rewriting it as follows:


sum({<[Folder ID]=,[Creation Date]={'>=$(=Date(vFromDate, 'YYYY-MM-DD'))<=$(=Date(vToDate, 'YYYY-MM-DD'))'}>*<Adminsitrator={'A'}, Owner={'O'}, Viewer={'V'}>}[Size])


regards

Not applicable
Author

Thanks for your advice.I tried it but it is still not working.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Can you attach sample file?

Regards,

Jagan.