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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
sr_qlikview
Creator
Creator

How to filter weekend date on chart

I have to develop a 7 day (only weekday) rolling chart for sales. how to filterout weekend dates on dimension ? any function to handle this or best possible way?

ex: my chart should display sales for below dates.

Mar 25

Mar 22

Mar 21

Mar 20

Mar 19

Mar 18

mar 15

1 Solution

Accepted Solutions
Anonymous
Not applicable

Usually the best way is to create a field for workdays in the script.  If oyu have field Date, for all days, it will be

if(weekday(Date)<5, Date) as WorkDay

Regards,

Michael

View solution in original post

2 Replies
Anonymous
Not applicable

Usually the best way is to create a field for workdays in the script.  If oyu have field Date, for all days, it will be

if(weekday(Date)<5, Date) as WorkDay

Regards,

Michael

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached example

Instead of max(Date) you could use today() if you only want to calculate the last 7 workdays from today: sum({<Date={'>=$(=firstworkdate(today(),7))'}>}Sales)


talk is cheap, supply exceeds demand