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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Display only the last full weeks data


Hi,

I have a dataset as below:

WeekendingCountEmployee
10/05/20155Joe
10/05/20157Jack
03/05/20152Joe

I want to produce a gragh with employees along the bottom by count. However I only want it to show the lastest week ending (in this case 10/05/2015.

Where would I put the expression and which expression.

Thank you in advance.

Labels (1)
3 Replies
sunny_talwar
MVP
MVP

Try this: (PFA)

=Sum({<Weekending = {">=$(=WeekStart(Max(Weekending)))"}>}Count)


Update: Script used

SET DateFormat='DD/MM/YYYY'

Table:

LOAD Weekending,

     Count,

     Employee

FROM

[https://community.qlik.com/thread/164201]

(html, codepage is 1252, embedded labels, table is @1);

Not applicable
Author

Hi,

create a graph with employee ,weekending as dimension -

-where in dimension weekending use calculated dimension as max(Weekending)

count as expression

Thanks,

Khushboo

Not applicable
Author

Thank you.

i tried it, but nothing changed;