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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to set chart to pick latest report

Hello,

Find attached. I want to set my combo chart to pick the latest report sent in everyday of the week so that every lastest update will be show on chart then the previous data will be on history.

Rgds

Ema

8 Replies
PradeepReddy
Specialist II
Specialist II

use the bellow expressions...

Sum({<Day={$(=max(Day))}>}Actual)

Sum({<Day={$(=max(Day))}>}Target)

It is better to create a Date_ID in script and use that Date_ID in the expression as well.

EX: Year&'-'&Month&'-'&Day

Not applicable
Author

This worked to some extent but cant we use the date instead of day? because this doesn't consider the month.

I already concatenated Month and Day.

PradeepReddy
Specialist II
Specialist II

Concatenate the Year also...

Take the Date of the transaction and use it in the the expression.

Not applicable
Author

After concatenation i did this:

Sum({<Date={$(=max(Date))}>}Actual)

Didnt work out

Not applicable
Author

Find attached i now got the first answer i was running away from when i use only "sum(Acutal)" and "sum(Target)" Please how do i resolve this?

PradeepReddy
Specialist II
Specialist II

Try like this...

Sum({<Date1={'$(=max(Date1))'}>}Actual)

Sum({<Date1={'$(=max(Date1))'}>}Target)

sateeshkumar
Creator
Creator

Try this one

=Sum({<Date1={'$(=vmaxdate)'}>}Actual)

where vmaxdate=max(Date1)

Not applicable
Author

Hello Pradeep,

This worked but when i click on the previous date chart doesn't display previous days info. which is very rigid not flexible to swiitch back to history. Also this script: Sum({<Date1={'$(=max(Date1))'}>}Actual) will not obey the law of date in ascending order because its dealing with the value direct giving you the Max number instead of the latest date