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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to filter more then 1 items ?

Hi All

I just Add GL_CODE = 50010 to below expression :-

=money(fabs(if([Exec P&L Level] = 's','',Sum({$<YearMonth = {"$(=Date([YearMonth],'YY MMM'))"},[GL_CODE] = {"50010"}, month = ,year=>}[Amount])), $(vCurrency)))

I need to Add one more GL_CODE = 50011 , may i know how to add ? so that my SET expression will filter 50010 and 50011.

Paul

1 Solution

Accepted Solutions
vivek_niti
Partner - Creator
Partner - Creator

Hi,

Try this...

=money(fabs(if([Exec P&L Level] = 's','',Sum({$<YearMonth = {"$(=Date([YearMonth],'YY MMM'))"},[GL_CODE] = {"50010","50011"}, month = ,year=>}[Amount])), $(vCurrency)))

Regards,

View solution in original post

8 Replies
vivek_niti
Partner - Creator
Partner - Creator

Hi,

Try this...

=money(fabs(if([Exec P&L Level] = 's','',Sum({$<YearMonth = {"$(=Date([YearMonth],'YY MMM'))"},[GL_CODE] = {"50010","50011"}, month = ,year=>}[Amount])), $(vCurrency)))

Regards,

Sokkorn
Master
Master

Hi Paul,

It seem that your GL code is a number. Let try

[GL_CODE] = {50010,50011}

Regards,

Sokkorn

paulyeo11
Master
Master
Author

Hi Vivek

Thank you vrey much your working.

Thank you Sokkom for good try.

Paul

er_mohit
Master II
Master II

You simply write this way

[GL_CODE] = {50010,50011}

paulyeo11
Master
Master
Author

Hi er , Thank you very much , it work fine .  since i need to filter GL Code from 50010 till 50030, meaning total 20 number , how to avoid writing all the individual number , and just use from 50010 till 50030 , it there have such code in QV ?

Paul

paulyeo11
Master
Master
Author

my QV Doc

er_mohit
Master II
Master II

Sorry for late reply.

For this situation you could try like this

and i can't open your app. coz, i m working on personal edition..

[GL_CODE] = {">=50010<=50030"}

paulyeo11
Master
Master
Author

Hi er

your suggestion work fine . many thank it make my life easy.

Paul