Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
robert_mika
Master III
Master III

Aggregation per day of week

From this sample

CalendarDateDayOfWeekid
01/01/2015Thu500
01/01/2015Thu500
01/01/2015Thu750
01/01/2015Thu750
02/01/2015Fri223
02/01/2015Fri500
02/01/2015Fri500
02/01/2015Fri750
02/01/2015Fri750

to get

01/01/2015 Thu 2500

02/01/2015 Fri  2723

in line chart

1 Solution

Accepted Solutions
sunny_talwar

15 Replies
sunny_talwar

Robert, one dimension or both CalendarDate and DayofWeek are dimensions here?

UPDATE: I am pretty sure you are not looking for this, are you?

Capture.PNG

robert_mika
Master III
Master III
Author

Only DayofWeek

The chart will show count of id per weekday where Day of week is Dimension

sunny_talwar

Coming from you Robert, I am doubting my response here. But don't you just need Sum(id) as your expression with DayofWeek as your dimension?

Capture.PNG

robert_mika
Master III
Master III
Author

No

This is just sample

There will be more dates and the Dim is Day of Week

01/01/2015Thu500
01/01/2015Thu500
01/01/2015Thu750
01/01/2015Thu750
02/01/2015Fri223
02/01/2015Fri500
02/01/2015Fri500
02/01/2015Fri750
02/01/2015Fri750
03/01/2015Sat250
03/01/2015Sat500
03/01/2015Sat750
03/01/2015Sat1000
04/01/2015Sun500
04/01/2015Sun981
04/01/2015Sun1000
05/01/2015Mon250
05/01/2015Mon500
05/01/2015Mon1222
05/01/2015Mon1250
06/01/2015Tue250
06/01/2015Tue1000
06/01/2015Tue1000
07/01/2015Wed250
07/01/2015Wed500
07/01/2015Wed1000
07/01/2015Wed1000
08/01/2015Thu2
08/01/2015Thu3
08/01/2015Thu4
08/01/2015Thu4
08/01/2015Thu500
08/01/2015Thu750
08/01/2015Thu1250
09/01/2015Fri250
09/01/2015Fri1250
09/01/2015Fri1250
sunny_talwar

What is the expected output for the above sample?

avinashelite

you can try with GROUP BY in the script !!

Master:

LOAD

CalendarDate,

DayOfWeek,

id;

from table;


LOAD CalendarDate,

,DayOfWeek,

SUM(id) as total

resident Master

GROUP BY

CalendarDate,

,DayOfWeek;





robert_mika
Master III
Master III
Author

Mon3222
Tue2250
Wed2750
Thu5013
Fri5473
Sat2500
Sun2481
robert_mika
Master III
Master III
Author

Thanks Avinash

That must be in GUI

sunny_talwar

Like this?

Capture.PNG