Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
sibideepak
Creator II
Creator II

Bucket with alphanumeric...

GEIDLevel
155058C14
234708C16
257645C15
307479C15
430422C15
435929C16
815579A05
818027A05

in this data i want to create bucket with Level..

the range to  character ie) A will one bucket , C will be another bucket ...it should be dynamic not only for A and C..

and measure is count(GEID)...and one bar should display combined data of all.

1 Solution

Accepted Solutions
rubenmarin

Hi Deepak,

Not sure if I understand it well...You can use

Left(Level, 1) as Bucket

or

PurgeChar(Level, 1234567890) as Bucket

View solution in original post

3 Replies
Anonymous
Not applicable

In your load script add a line like this :

     left(Level,1)     as Bucket ,

datanibbler
Champion
Champion

Hii Deepak,

you can try splitting it with the LEFT() and RIGHT() functions (into C and 14 and the like) and then put both those expressions inside a DUAL() function.

That way, you'll have both the letter and the number in one field and you can sort by (or bucket by) whatever you like.

HTH

Best regards,

DataNibbler

rubenmarin

Hi Deepak,

Not sure if I understand it well...You can use

Left(Level, 1) as Bucket

or

PurgeChar(Level, 1234567890) as Bucket