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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

group date

Hi ,

I have a date & Qty data as show in image. I want a chart which shows total of qty for every 7 days (not weekly).

Ex: -

Jan 1 to Jan 7th

Jan 8 to Jan 14........

Thanks in Advance

Labels (1)
5 Replies
Not applicable
Author

Something like this:


Left join <your table name>
Load *, floor(day(Date) / 7) as ChunkOfSevens
resident <your table name>;


After that you can use ChunkOfSevens as Dimension in your chart.

Not applicable
Author

Thanks for your reply... Can we do it in the charts directly by any expressions , instead of doing at load script?

johnw
Champion III
Champion III

Sure, just use floor(day(Date)/7) as a calculated dimension. It'll perform better if you make it a real dimension in the script like Nick suggested, though.

Not applicable
Author

I tried that expression but getting nulls..? can you please upload a sample.

Not applicable
Author

It shouldn't if you have "Date" field. Do you have Date field?

It will be great if you send us your example.