Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ananyaghosh
Creator III
Creator III

How to create a list box based on Month and relate them to database field

Hi,

I need to have make a list box based on the month and based on that, I have to link a database field to that list box.

Month List.PNG

the database field format is like that : yyyy-mm-dd. Now I want that when I select a month, my chart will change accordingly.

Thanks,

Sandip Ghosh

3 Replies
nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

Hi ,

Its Posible ,

example i have field>>> Emp_Join_Time

Ex :

Load

Emp_name,

Emp_Join_Time,

Month(Emp_Join_Time) as Month

From...............


If u do like this ,u ll get as u want


Regards,

Nagarjuna

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Data:

LOAD

*

Month(DateFieldName) AS Month;

SELECT

*

FROM tableName;

Now use Month as Listbox.

Regards,

Jagan.

vvvvvvizard
Partner - Specialist
Partner - Specialist

Table1:

LOAD

Month(Date#((database field month name here),'yyyy-mm-dd' ) as the_month;

SELECT

"database field month name here"

from tableName;