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

Set Analysis Help

Hi Community users,

I need some help on the set analysis.

I want to display Count of Vessels , who are using 80% of space in last one day.

Fields i have are :

VesselNameSpaceUtilize%Date
AXU9506-Apr-2014
AYU6906-Apr-2014
BUY8006-Apr-2014
CZE9005-Apr-2014
ZCE8106-Apr-2014
AXY6706-Apr-2014

Seeking Answer for the above should be - 3

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Please read this blog:

http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work

=count({<[SpaceUtilite%] = {">=80"}, Date = {">=$(=Date(today()-1,'DD-MMM-YYYY'))"}>} DISTINCT VesselName)

View solution in original post

5 Replies
swuehl
MVP
MVP

Date should be a dual value, i.e. interpreted correctly as date, then try

=count({<[SpaceUtilite%] = {">=80"}, Date = {'$(=Date(max(Date),'DD-MMM-YYYY'))'}>} DISTINCT VesselName)

Not applicable
Author

Hi Swehl,

Thanks for the Quick Reply.

date parameter is not working here. without date it is working fine.

Not applicable
Author

I want to reflect the data of Yesterday or last 24 hours

swuehl
MVP
MVP

Please read this blog:

http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work

=count({<[SpaceUtilite%] = {">=80"}, Date = {">=$(=Date(today()-1,'DD-MMM-YYYY'))"}>} DISTINCT VesselName)

Not applicable
Author

Thanks Swehl. It works.