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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
mgavidia
Creator
Creator

Need help involving date field in set analysis expression

Hello everyone,

I hope someone in the community is able to assist me with this problem.

I need to come up with an expresion that will give me the total count of records where:

-     UnitStatus is "Rented'

-     Category is either RV" or "Office spaces"

-     MoveOutDate is blank (that is, there is no date stored in the field. It is a 'date' field)

This expression below gives me the first 2 requirements but I cannot come up with the right expression for the date.

How can this Set Analysis expression by modified to tell QlikView to also exclude records where the date is blank?

Sum ({$<UnitStatus={'Rented'},Category={"RV*","Office Spaces"}>}#MoveInCounter)

I'll appreciate any tips on this matter.

Thanks,

Miguel Gavidia

2 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

=Sum ({$<UnitStatus={'Rented'},Category={"RV*","Office Spaces"}, MoveOutDate-={'*'}>}#MoveInCounter)

Qlikview shows error new -=, but it works as expected.


Hope this helps you.

Regards,

Jagan.

mgavidia
Creator
Creator
Author

Jagan,

Well, I did try that previously ( * with double quotes) and it gave me all 0s.

That's why I think I am using the wrong syntax. I cannot find any samples of set analysis using dates in this way...

I also tried Stefan's set analysis wizard but no luck.

=Sum ({$<UnitStatus={'Rented'},Category={"RV*","Office Spaces"}, MoveOutDate-={"*"}>}#MoveInCounter)

Thanks for your reply.

Miguel