Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
paulyeo11
Valued Contributor II

How to change my YearMonth script start to Dual ?

Hi All

I have a Load Script as below :-

Date(Monthstart([TempDate]), 'YY MMM')

as YearMonth,

I like to change the above using Dual , meaning some thing like :-

Dual(Date(Monthstart([TempDate]), 'YY MMM'))as YearMonth,

As i encounter issue when i use YearMonth field in QS . it display as number instead of YearMonth like 2015 Jan.

Paul

1 Solution

Accepted Solutions
MVP
MVP

Re: How to change my YearMonth script start to Dual ?

Dual(Date(Monthstart([TempDate]), 'YY MMM'), TempDate) as YearMonth

or

Dual(Date(Monthstart([TempDate]), 'YY MMM'), MonthStart(TempDate)) as YearMonth

2 Replies
MVP
MVP

Re: How to change my YearMonth script start to Dual ?

Dual(Date(Monthstart([TempDate]), 'YY MMM'), TempDate) as YearMonth

or

Dual(Date(Monthstart([TempDate]), 'YY MMM'), MonthStart(TempDate)) as YearMonth

paulyeo11
Valued Contributor II

Re: How to change my YearMonth script start to Dual ?

Hi Massimo

Thank you after using Dual , My chart look better in QS.

month good.png

Before that it look like this , i don't like.

month bad.png

Community Browser