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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Aggr and Sum

Hi All,

I have a logic which I am not able to code in Qlikview.

We have a set of data, if the client clicks one specific day of the Month, the users should be able to see the data (sum) for the next 6 days including the selected day i.e 7 days data

ItemDateUnit
ABCV1-Jan-9510
ABCV2-Jan-9520
ABCV3-Jan-9525
ABCV4-Jan-9530
ABCV5-Jan-9550
ABCV6-Jan-9520
ABCV7-Jan-9540

For example: If the selection is 01st Jan, the output for Item ABCV should be 195.

Thanks in Advance'.

1 Solution

Accepted Solutions
Not applicable
Author

Hi Hitesh,

Please find the attachement for the solution.

Santhosh G

View solution in original post

5 Replies
nilesh_gangurde
Partner - Specialist
Partner - Specialist

Hi,

Use set analysis, by using set analysis you can implement it. or if possible share the sample data.

-Nilesh

Not applicable
Author

Hi Nilesh,

Please find the attached excel file. I did try to implement the same using set analysis however I was not successful in doing so. I guess my expression was not logically right to get the answer.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this expression

=Sum({<Date={'>=$(=Date(Max(Date)))<=$(=Date(Max(Date) + 6))'}>}Unit)

Note : if above expression not working then check the date formats of Date dimension and Date(Max(Date)) are same.

Hope this Helps you.

Regards,

Jagan.

Not applicable
Author

Hi Hitesh,

Please find the attachement for the solution.

Santhosh G

Not applicable
Author

hitesh,

use the set expression as follows:

=Sum({<Date={'>=$(=Date)<=$(=Date + 6))'}>}Unit)