Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

condition

hi dears

anyone knows what is the problem with my condition? i think with the part about FullDate...

this is my own code:

Count ( Distinct { <[Cls Type]={"2","7"} ,[Full Date]={"<=($Variable2)"} >}[Id Order])

regards

mana azizi

1 Solution

Accepted Solutions

Re: Re: condition

Hi,

This wont work as you cannot compare string with <=

Hence I suggest you to store date as numerical value ans compare with numbers.

By default QlikView will not support Hijri Calender.

Regards

ASHFAQ

9 Replies

Re: condition

Hi,

Try this

Count ( Distinct { <[Cls Type]={'2','7'} ,[Full Date]={"<=$(=Variable2)"} >}[Id Order])


Make sure you have proper date format.


Regards

ASHFAQ

Re: condition

You are right,

try to delete the date condition and check if it works.

if the answer is yes then verify the value of the variable and the format of the date in the field. surely they do not match.

Let me know

Not applicable

Re: condition

no it doesnt work

Re: condition

Hi,

Can you post sample application.

Regards

ASHFAQ

Not applicable

Re: condition

yes when i delete it, the code works.

fulldate is a string and variable2 is comming from an input box that chooses from fulldates. so i think they are in a same type and format.

Not applicable

Re: Re: condition

this is my own file

Re: condition

another test : take a Full Date value and replace the variable with that value, check if it works.

And I've seen that you have written the variable as $variable2 but the correct syntax is $(variable2)

let me know

Not applicable

Re: Re: condition

the code is related to column a.

Re: Re: condition

Hi,

This wont work as you cannot compare string with <=

Hence I suggest you to store date as numerical value ans compare with numbers.

By default QlikView will not support Hijri Calender.

Regards

ASHFAQ

Community Browser