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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Do not include the last day's data

How can I amend my expression so that the last day of the data set is NOT included in the chart?

SUM({$<CalendarDayName-={'Sat','Sun'}>}DaySummary.Users)

1 Solution

Accepted Solutions
tresesco
MVP
MVP

May be like:

SUM({$<CalendarDate-={"$(=Max(CalendarDate))"}>}DaySummary.Users)

View solution in original post

6 Replies
tresesco
MVP
MVP

May be like:

SUM({$<CalendarDate-={"$(=Max(CalendarDate))"}>}DaySummary.Users)

PrashantSangle

Hi,

Can you explain with sample data?

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

hi

try this

if(not wildmatch(CalendarDayName,'Sat','Sun'),DaySummary.Users)

jyothish8807
Master II
Master II

In the below script it will exclude max(date) and will take all the other dates.


SUM({$<CalendarDate-={"$(=Max(CalendarDate))"}>}DaySummary.Users)

Regards

KC

Best Regards,
KC
PrashantSangle

Hi,

I understand what Tresesco Suggest.

But I am Confused with Alex requirement, Becuase below expression was tried by Alex made me confused

SUM({$<CalendarDayName-={'Sat','Sun'}>}DaySummary.Users)

that what he actually trying to acheive, that either he want data upto last days or He is trying to exclude Week end data.

That why I asked Alex to explain with some example.

But he got correct solution, So I understand what was he is looking for

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
jyothish8807
Master II
Master II

Sorry bro

Best Regards,
KC