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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count Rows

Hi,

I want to count the specific rows, the records are shown below:

CompletionDateCountMemberIdDateEnteredMemberId
2010/03/28 22:22:11168602812010/03/24 23:38:3116860281
2010/04/04 04:08:41168602812010/03/24 23:38:3116860281
2010/04/04 06:44:44168602812010/03/24 23:38:3116860281
2010/04/05 02:02:54168602812010/03/24 23:38:3116860281
2010/04/07 22:27:28168602812010/03/24 23:38:3116860281
2010/04/11 23:47:06168602812010/03/24 23:38:3116860281
2010/04/19 23:40:16168602812010/03/24 23:38:3116860281
2010/04/23 05:43:58168602812010/03/24 23:38:3116860281
2010/05/05 07:45:40167427552010/03/13 12:56:2716742755


I want to count the rows whose completionDate<=DateEntered+7(days), and use MemberId as the dimension to show.

How to use set analysis to achieve?

Thanks.

3 Replies
Not applicable
Author

When I remove the last row whose memberid is 16742755, then use set analysis:

count({1<CompletionDate={"<=$(=Date((DateEntered+10),'YYYY/MM/DD hh:mm:ss'))"}>}CountMemberId)

It makes sense, but if includes that row, this expression will not work.

jonathandienst
Partner - Champion III
Partner - Champion III

Isaac

Please be more specific:

  • what did you expect?
  • what do you get?

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
daveamz
Partner - Creator III
Partner - Creator III

Hi Isaac,

Try to use a variable as vCheckDate=Date((DateEntered+10),'YYYY/MM/DD hh:mm:ss') then for the set analys formula use:

"count({1<CompletionDate={"<=$(vCheckDate)"}>}CountMemberId)"

Good luck!