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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
leowyk1188
Contributor
Contributor

Traffic light gauge to show last 12 months indicators

Hello all,

Currently i have 11 months of data with month format as "201901,201902,2019,03..."

How can i setup a variable to bring me the last 12 months figures and have 12 traffic light indicator (based on that month's results) on a straight table?

(PS. i know how to setup the traffic light gauge in a straight table to bring me the current month's traffic light indicator)

2 Replies
rubenmarin1

Hi, it will be easier with a master calendar where you can work with expression and these fields that helps to filter data, is example if you want always the last 12 months based on current date (or reload time date) you can just add a flag in master calendar:

If(tmpDate>=AddMonths(Today(),-12), 1, 0) as is12M

If you only have that field maybe using set analysis like:

Only({<PeriodField={">$(=Date(AddMonths(Date#(Max(PeriodField), 'YYYYMM'),-12),'YYYYMM'))"}>} IndicatorValue)

Using PeriodField as dimension it should work.

 

Brett_Bleess
Former Employee
Former Employee

Just adding to the other post, here is a Design Blog post that may be of further help regarding the Master Calendar...

https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527

Here is the base URL for the Design Blog area too in case you want to do some further searching there:

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

Hopefully this along with the other post will get you what you need to get things working as you wish.  Shout back if you have further questions, otherwise be sure to use the Accept as Solution button on any post(s) that helped you get things resolved.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.