Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
niha
Creator II
Creator II

Date format issues in Qliksense

Hello,

In a Particular report the data format was like 04/22/2017 . To get the correct requirement I did the following codes and all worked fine. I had to convert the date format to Year, Month, YearMonth(numeric.)

[Paid Amount],
Date( [Paid Year Month]) as [ Date Paid],
Year([Paid Year Month]) as DPYear,
Month([Paid Year Month]) as DPMonth,
Day([Paid Year Month]) as DPDay,
Year([Paid Year Month])& (Month([Paid Year Month])) as DPYearMonth,
Year([Paid Year Month])&NUM(Month([Paid Year Month]),'00') as DPYearMonthnum,

but in backed the format changed like  2017-04.  ALL my date field is blank and visualization is not working. Please suggest.

Regards,

Niha

1 Solution

Accepted Solutions
niha
Creator II
Creator II
Author

Hello,

That did not worked but this worked. Thanks .

Date(Date#([Paid Year Month], 'YYYY-MM'), 'YYYYMM') as [Date Paid],

 

https://community.qlik.com/t5/Qlik-Sense-Enterprise-Documents/Dealing-with-date-formats-in-QlikView-...

View solution in original post

5 Replies
dplr-rn
Partner - Master III
Partner - Master III

What is the data in the source column [Paid Year Month]
niha
Creator II
Creator II
Author

the format is now: 2017-04 . 

YYYY-MM

niha
Creator II
Creator II
Author

PAID -YEAR-MONTH is just a date that is coming in YYYY-MM format. Say 2017-04, 2017-05, 2017-06, 2017-07 etc.

I need to convert Year, Month, YearMonth. My out put should be 201701, 201702, 201703 like this from above format.

Thanks,

Niha

Anvesh
Contributor III
Contributor III

Hi Neha,

Try this

Date(PAID -YEAR-MONTH,'YYYYMM') as New_Date.

Thanks

Anvesh

niha
Creator II
Creator II
Author

Hello,

That did not worked but this worked. Thanks .

Date(Date#([Paid Year Month], 'YYYY-MM'), 'YYYYMM') as [Date Paid],

 

https://community.qlik.com/t5/Qlik-Sense-Enterprise-Documents/Dealing-with-date-formats-in-QlikView-...