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

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

Weekday issue help!!

Hi All

what i expect is  - when i select sunday's of the month=6 as per weekday , it should show data from <fri - sunday>,else normal.

what i am getting is - for the first sunday i m getting wrong data , rest 3 sunday's its fine.....

Please find below the logic I am using in my expression to get the output.

=if(Weekday(vCalendar)<>6

,sum({<[Sales Stage Date]= {"$(=Date(vCalendar,'DD/MM/YYYY'))"},[Involvement] = {'with Services', ' not with Services'}>}[Amount])

,sum({<[Sales Stage Date]= {">=$(=Date(vCalendar-2,'DD/MM/YYYY'))"}*{"<=$(=Date(vCalendar,'DD/MM/YYYY'))"}

,[Involvement] = {'with Services', ' not with Services'}>}[Amount]))

Please suggest

Thanks in Advance

Timba

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

The is the correct syntax for the second part of your expression:

sum({<[Sales Stage Date]= {">=$(=Date(vCalendar-2,'DD/MM/YYYY')) <=$(=Date(vCalendar,'DD/MM/YYYY'))"}, Involvement = {'with Services', ' not with Services'}>} Amount)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Hi Jona

Issue is still the same even after using the above querry in expression,its showing data for first sunday of every month.............where as i want  no data on sundays

Thanks

Timba