Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Is there a way to condition a chart to show the latest max date data?

Hello,

I have a chart and it monitoring the latest month data how do i set it to pick the latest  month data. Date is in this format "YYYY/MM"

Rgds

24 Replies
Not applicable
Author

Use max(month) in either dimension or expression using an if condition. You can even do the same with a trigger.

Sometimes only max(month) will not come, try using aggr (which is similar group by in sql)

its_anandrjs

Hi,

In the expression write

Sum({<MonthYear = {'$(=Max(MonthYear))'}>}  Metrics)

Ex:-

Sum({<MonYr = {'$(=Max(MonYr))'}>}  Sales)

Here MonYr field is in the format of "YYYY/MM"

And  write this expression in the chart expression.

Regards

Anand

Not applicable
Author

Am applying to only one chart on a sheet not all chart on the sheet

Not applicable
Author

Then put it in a expression using if condition, Sum(if(month=max(month), sales,null())

Not applicable
Author

Didnt work

saumyashah90
Specialist
Specialist

Sum({<MonthYear = {'$(=Max(MonthYear))'}>} Metrics)

saumyashah90
Specialist
Specialist

What are you using that in... in Calendar or normal chart?

Not applicable
Author

Try aggr, if max is not working properly, use your highest aggregate column for  aggr.

Not applicable
Author

Didnt work