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: 
Anonymous
Not applicable

Problem in multi selections in years

I want display worked hours per EMP_ID  month wise , year wise and multi selection of months and years alone.

employee worked hours enter daily basis

here condition is worked hours <4 is available,>=4&<8 is partially available,>=8 is occupied.

could you please tell me script level

Emp.png

Regards

Yuvaraj

2 Replies
MK9885
Master II
Master II

Simply add

Month and Year to your Multi Box chart

User can select single month or multiple..

And the data will change according to the user selection.

Is this what you need?

vishsaggi
Champion III
Champion III

What is your expected output, you want a new field to display if an employee available or occupied based on worked hours? IF Yes,

Then in your script write like

LOAD *,

     IF(WorkedHours < 4, 'Available', IF(WorkedHours >= 4 AND WorkedHours < 8, 'Partially Available',

             IF(WorkedHours >= 8, 'Occupied'))) AS Availability,

     Year(Sheetdate) AS Year,

     Month(Sheetdate) AS Month;

                 

LOAD EMPID,

     WorkedHours,

     Sheetdate

FROM

[WorkedHours.xlsx]

(ooxml, embedded labels, table is Sheet1);

Let us know if this is what you are looking for.