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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

IF AND Expression

Hello,

I have some criteria which consists of the following

G/L Number

10040,10041,10045,10050,10051,10055,10060,10061,10065,10100,10101,10105

Job No.

Industry Code

The idea is that:

IF G/L Number = 10040,10041,10045

AND Job No. -='' " (does not equal)

AND Industry Code =" "

SUM(Amount)

Any Ideas on how I can tackle this would be highly appreciated

Thank you in advance for your time

Mark

14 Replies
jduenyas
Specialist
Specialist

Am I the only one or are there others who experience the same problem:

in a set analysis, if using  -= or *= the intelisense (autocomplete) stops working.

Thanks

Josh Duenyas

arixooo123
Creator III
Creator III

Hi Mate

I have a similar issue with if in the chart expression:

My requirement is basically this:

Chart Dimension: Mth (like Jan, Feb , ...)

For Current month comparing due date of each ID with Today() and counting the overdued IDs

For past months, comparing the due date of each ID with LastDayOfTheMonth (Which is a master calendar field date I added)

This is my expression which is not working:

If (Mth=date(Today(),'MMM'), Count(  {<DueDate={"<=$(=Today())"}>} Comp_ID),Count(  {<DueDate={"<=$(=LastDayOfTheMonth)"}>} Comp_ID ))

jonathandienst
Partner - Champion III
Partner - Champion III

>>the intelisense (autocomplete) stops working.

That was a problem on versions of QV prior to 11.20 SR7 or SR8 (I think that was about 2 years ago). You may want to upgrade to a more recent version.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
arixooo123
Creator III
Creator III

Hi Jonathan,

Hope you're well. Could you please have a look at my expression :

My requirement is basically this:

Chart Dimension: Mth (like Jan, Feb , ...)

For Current month comparing due date of each ID with Today() and counting the overdued IDs

For past months, comparing the due date of each ID with LastDayOfTheMonth (Which is a master calendar field date I added)

This is my expression which is not working:

If (Mth=date(Today(),'MMM'), Count(  {<DueDate={"<=$(=Today())"}>} Comp_ID),Count(  {<DueDate={"<=$(=LastDayOfTheMonth)"}>} Comp_ID ))

jonathandienst
Partner - Champion III
Partner - Champion III

Its not a good idea to hijack a thread with another question. Please open a new thread with your question.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein