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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

pivot table auto group by dimension

How can i make a auto group by from dimensions in a pivot table.

My dimension has more than 10000 values and i wanna put them in groups.

<1000

1000-1099

1100-1199

enz

Is that possible and how?

greetz,

dirk groen

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

Perhaps this. The dual() function keeps them sorted in numeric order.

if(MyField<1000,dual('<1000',1)
,dual(floor(MyField,100)&'-'&(floor(MyField,100)+99),floor(MyField,100))) as MyNewfield

View solution in original post

3 Replies
Not applicable
Author

Hi,

Maybe you can use the function CLASS in your script load, and create a new field if the group that you want.

johnw
Champion III
Champion III

Perhaps this. The dual() function keeps them sorted in numeric order.

if(MyField<1000,dual('<1000',1)
,dual(floor(MyField,100)&'-'&(floor(MyField,100)+99),floor(MyField,100))) as MyNewfield

Not applicable
Author

Thanks a lot. He works fine

Greetz,

Dirk Groen