Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sureshbaabu
Creator III
Creator III

Un-Group the Dimensions in Chart

Hello,

I have a requirement to represent a data by month using charts and I wanted to display the first character of the Month names as below

req.bmp

Qlikview groups the common fields together. So for Months,  All ‘J’,’A’ and ‘M’ are getting grouped

untitled.bmp

could you please assist me with the process to ungroup the dimension ?

Thanks

1 Solution

Accepted Solutions
Jason_Michaelides
Partner - Master II
Partner - Master II

Yes - sorry.  Try:

Dual(Left(MONTH,1),Date#(MONTH,'MMM'))     AS     MONTH_NEW

The Date#() coverts the text into a date (numeric) field. Dual allows you to have similar looking values but with different underlying numeric values.

Now, in your chart if you use MONTH_NEW you should be good to go.

Jason

View solution in original post

9 Replies
Jason_Michaelides
Partner - Master II
Partner - Master II

Try this as your dimension:

=Date(Month,'M')

This should only affect the formatting and not the underlying numerical value.

Hope this helps,

Jason

sureshbaabu
Creator III
Creator III
Author

Hello Jason,

Thanks for your Response!!!

Could you pease explain in detail if you dont mind. I'm not getting it clearly.

For Eg:

My cloumn name is 'MONTH'

My data for column 'MONTH' is 'JAN,FEB, MAR,.....,DEC'

MY dimension is MONTH on the Chart.

Could you please help me with the Expression for the above example?

Thanks

Jason_Michaelides
Partner - Master II
Partner - Master II

Remove MONTH as the dimension.  Click the Add Calculated Dimension button and type:

=Date(MONTH,'M')

In the Label box on the dimension tab type 'Month'

See if that works,

Jason

sureshbaabu
Creator III
Creator III
Author

Hello,

No, It does not work. It shows a null coulmn

untitled.bmp

Thanks

Jason_Michaelides
Partner - Master II
Partner - Master II

How did you get your MONTH field?  Is it text or a number (date) formatted as 'MMM' ?

If it is text then you will need to add this to the script:

LOAD

     Otherfields,

     Date(Date#(MONTH,'MMM'),'M')     AS     MONTH

FROM.....;

If you post your app I'll show you.

sureshbaabu
Creator III
Creator III
Author

My data comes as a text. The above expression will give us only the numbers from 1 to 12 right?

 

LOAD

Month,
Date(Date#(Month,'MMM'),'M') AS MONTH_NEW,
Value
FROM
[test.xls]
(
biff, embedded labels, table is

Sheet1$);

my dimension is 'MONTH_NEW' in the chart.

Thanks

Jason_Michaelides
Partner - Master II
Partner - Master II

Yes - sorry.  Try:

Dual(Left(MONTH,1),Date#(MONTH,'MMM'))     AS     MONTH_NEW

The Date#() coverts the text into a date (numeric) field. Dual allows you to have similar looking values but with different underlying numeric values.

Now, in your chart if you use MONTH_NEW you should be good to go.

Jason

sureshbaabu
Creator III
Creator III
Author

This is Awesome. It Worked.

Thank you taking your time in helping me.

I have learnt something new from new. Thanks a lot Jason

Jason_Michaelides
Partner - Master II
Partner - Master II

No worries.