Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date field for month start

Hi All,

I loaded data from Jan'15 to Jan'16( 13 Tables). now I need to add one date column that contains only start date of the month.

P FA.

Thanks,

Krishna.

   

Emp. IdEmployee NameDOJGender
458A02-May-96Male
126B06-Feb-12Male
140C01-Mar-13Male
148D01-Aug-13Male
150E02-Sep-13Female
151F16-Sep-13Female
1540G21-Oct-13

   

Emp. IdEmployee NameDOJGenderMonth_HR
458A02-May-96Male01-01-2015
126B06-Feb-12Male01-01-2015
140C01-Mar-13Male01-01-2015
148D01-Aug-13Male01-01-2015
150E02-Sep-13Female01-01-2015
151F16-Sep-13Female01-01-2015
1540G21-Oct-13Male01-01-2015
1 Solution

Accepted Solutions
avinashelite

if you need only the 01-01-2015 for all then , you can add a column like

makedate(2015,01,01) as Month_Hr


if you want it dynamically please tell us how to to identify the month

View solution in original post

5 Replies
Kushal_Chawda

How do you recognize that this data is from jan 15 to jan 16?

Anonymous
Not applicable
Author

Hi Try this ,

MonthStart(Month_HR)

avinashelite

if you need only the 01-01-2015 for all then , you can add a column like

makedate(2015,01,01) as Month_Hr


if you want it dynamically please tell us how to to identify the month

its_anandrjs

What is the logic for field Month_HR should be 01-01-2015



Regards

Anand

Anonymous
Not applicable
Author

Hi,

I loaded data from Excel Sheets.Date fields are Date of joining, Effective date. KPI is Head count VS Every Month.

Regards,

Krishna