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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Dayna
Creator II
Creator II

Showing today on a chart

Hello All,

This might sound silly, but I want to make it obvious on a bar or line chart where today is. I have multiple dimensions and expressions, and one of the dimensions will be date or week/year.

I was thinking of doing an IF statement on the colour to change for today(), but then the legend gets screwed up..

Any ideas? I just want to make it obvious to the users where the current date is on the chart!

Kind Regards,
Dayna

Labels (1)
17 Replies
Dayna
Creator II
Creator II
Author

It might be an option, but doesn't work for me.. can you try on your sample?

Kind Regards,
Dayna

lironbaram
Partner - Master III
Partner - Master III

hey attach

is my suggestion

adding an expression which Write Today Above the correcet date

Anonymous
Not applicable

Hi Dayna,

Maybe this is what you are looking for?

Check file.

Dayna
Creator II
Creator II
Author

Hello Dennis,

That's exactly what I was after! Thank you!!

Dayna
Creator II
Creator II
Author

Dennis, how did you do it? lol!

Anonymous
Not applicable

Hi Dayna,

I used the "Reference Lines" option in the presentation tab

If you open my document and you go there you will see "today", select this and click "Edit", you will see the expression and the options I used to make this line:


=Month(today()) + Day(today())/Day(MonthEnd(today()))


Because my grahp has months it has to return the right month and the amount of day (from the current month) devided by the total days of the current month.

So for today (feb 10) it will return 2 (=month) , 10/28 (day 10 of 28) = 2,35714

I hope you can use this and adjust it to your needs.

Dayna
Creator II
Creator II
Author

Hello Dennis,

Many thanks for the above, I have only one last question... Continuous X is greyed out for me, how did you get this option?

Kind Regards,
Dayna

Anonymous
Not applicable

I found:

Continuous X requires that you have a numeric value on the X-axis and have chosen to display it as continuous on the axis tab.

Here: http://community.qlik.com/forums/t/28348.aspx