Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Announcing the newest addition to the Qlik Community, Qlik Gallery! Learn More
commonqlik
Contributor III

changing format of the data?

Hi ,

i have bar chart  and i am showing data in date wise

like

dim is date

date:

1/1/2014

1/2/2014

and expr is sum(sales)

now i am getting chart date wise  i have  like   1/1/2014   1/2/2014   in x-axis

but  my req is i want change it in x-axis like     1/jan/2014 ,2/feb/2014  ?

how to do this ?

1 Solution

Accepted Solutions
anbu1984
Honored Contributor III

Re: changing format of the data?

Date(Date#('1/1/2014','DD/MM/YYYY'),'DD/MMM/YYYY')

3 Replies
anbu1984
Honored Contributor III

Re: changing format of the data?

Date(Date#('1/1/2014','DD/MM/YYYY'),'DD/MMM/YYYY')

Re: changing format of the data?

if date field is already dual, then simply

Date(date, 'D/MMM/YYYY')


will do as a calculated dimension.


Else you could change the number format in the chart properties.

Re: changing format of the data?

Hi,

Add another calculated field in the load script or you can use calculated dimension in chart also

Load

Date(date,'DD/MMM/YYYY') as NewDatefield

From Source;


Or if not in date format

Load

Date(Date#(date,'D/M/YYYY'),'DD/MMM/YYYY') as NewDatefield

From Source;


Regards
Anand