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: 
VishalWaghole
Specialist II
Specialist II

Comparison between current week day and previous week day

Hi friends,

I want

Comparison between current week day and previous week day.

Means if i select current monday then i want current mondays data with respective previous monday.

how can calculate it.

Regards,

Vishal

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Suppose you have a field MyDate that contains a date and Sales that contains sales amounts. If you select a date then sum(Sales) will return the sum of the sales for that day. Then sum({<Mydate={'$(=only(MyDate)-7)'}>}Sales) will return the sales of a week (7 days) earlier.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Suppose you have a field MyDate that contains a date and Sales that contains sales amounts. If you select a date then sum(Sales) will return the sum of the sales for that day. Then sum({<Mydate={'$(=only(MyDate)-7)'}>}Sales) will return the sales of a week (7 days) earlier.


talk is cheap, supply exceeds demand
VishalWaghole
Specialist II
Specialist II
Author

Thanks Gysbert