Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
adiarnon
Creator III
Creator III

travel date data problem

hi,

i have a table of travels

employeecityfrom dateto date
aparis1/1/146/1/14
bnew york2/1/145/1/14
ctel aviv4/1/1420/1/14
dlondon1/1/141/2/14

i want to create a bar chart thant on the x axis i will have date (1/1/14,2/1/14,3/1/14...)

and the y axis i will have the number employees that are abroad...

how can i create that?

do i need anothe table or not?

adi

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

You should create all dates in the intervals using a while loop. See

http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/12/reference-dates

HIC

View solution in original post

7 Replies
its_anandrjs

Use

DateField in the X-axis and in the Y that is expression use Count(employee)

But from which date you have to use in the X-axis otherwise use master calendar date but chart may warys.

Not applicable

Hi,

Please find the attachement.

Not applicable

what is the date you want to use in X-axis

adiarnon
Creator III
Creator III
Author

the min date should be -min(from date) the max date max(to date)

hic
Former Employee
Former Employee

You should create all dates in the intervals using a while loop. See

http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/12/reference-dates

HIC

adiarnon
Creator III
Creator III
Author

tnx,

but i cant open documents =/

can u explain me in words your solution?

Not applicable

use autogenerate function to generate dates between min and max date. use this as your X-axis or use master calendar. U can see many post for master calendar in community.