Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
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
ashfaq_haseeb
Champion III
Champion III

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

View solution in original post

9 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

Try this

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


Make sure you have proper date format.


Regards

ASHFAQ

alexandros17
Partner - Champion III
Partner - Champion III

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
Author

no it doesnt work

ashfaq_haseeb
Champion III
Champion III

Hi,

Can you post sample application.

Regards

ASHFAQ

Not applicable
Author

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
Author

this is my own file

alexandros17
Partner - Champion III
Partner - Champion III

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
Author

the code is related to column a.

ashfaq_haseeb
Champion III
Champion III

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