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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
miguelbraga
Partner - Specialist III
Partner - Specialist III

Count Dates by Week with Set Analysis

Hi people,

I would like to know if there is anyway for me to count the amount of dates in a week using set analysis. For example, I have this table of values:

DateWeek
01/01/20132013/01
07/10/20132013/41
09/10/20132013/41
10/10/20132013/41
10/10/20132013/41
10/10/20132013/41
11/10/20132013/41

The results I need for this example are:

For Week -> 2013/01 the count number would be 1.

And for Week -> 2013/41 the count number would be 6.

How can I do this in a simple and clean way for me to understand? Bare in mind that I'm a begginer developer in both QlikView and Qlik Sense, just started a month ago.

Thanks for the help, Miguel.

1 Solution

Accepted Solutions
sasiparupudi1
Master III
Master III

10 Replies
sunny_talwar

If you add Week as a dimension and Count(Week) as your expression, you should get the result you are expecting to see.

maxgro
MVP
MVP

count(TOTAL <Week> distinct Date)

sunny_talwar

This:

Capture.PNG

miguelbraga
Partner - Specialist III
Partner - Specialist III
Author

I've done this solution and it seems that the numbers for Week -> 2013/01 is 5 and for Week -> 2013/41 is 5.

sasiparupudi1
Master III
Master III

Please try this

miguelbraga
Partner - Specialist III
Partner - Specialist III
Author

With this solution I could get my answer right!

Many thanks Mr. Sasidhar Parupudi. Have a nice week

sasiparupudi1
Master III
Master III

Hi Braga Miguel,

Your most welcome ,you too have a nice week.

Sasi

maxgro
MVP
MVP

see attachment

tyagishaila
Specialist
Specialist

count(Total<Week>Week)