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: 
smilingjohn
Specialist
Specialist

Expression

Hi All,

I am trying to write a expression like below but this is not giving me any output even there is not error in the expression 

Can someone please correct me  on this 

 

Expression :

=if(Floor(DelDate)=Floor(ColectDate),
count({<Status={'Closed'},
Sales={'Ach'}>}ID))

Thanks in Advance 

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

The If needs to be inside the Count().  You can write it using set expression like this:


count({<Status={'Closed'},Sales={'Ach'},ID={"=Floor(DelDate)=Floor(ColectDate)"}>}ID))

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

View solution in original post

3 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

The If needs to be inside the Count().  You can write it using set expression like this:


count({<Status={'Closed'},Sales={'Ach'},ID={"=Floor(DelDate)=Floor(ColectDate)"}>}ID))

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

smilingjohn
Specialist
Specialist
Author

I tied the same expression you suggested but this is not working for me .I am using this set expression in a line chart  

 

Thanks

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

1. In the expression editor, does it display "OK" a the bottom of the editor?

2. What output do you get?

-Rob