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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
lucarizziero
Partner - Contributor III
Partner - Contributor III

Pivot Table - reducing dimension

Hi,

I have a pivot table for which I need to reduce the dimensions aggregating the less recent.

For instance, I have the dimension named season contaning: 000, 021, 022, 031, 032, 041, 042, 051, 052, 061, 062, 071, 072, 081, 082, 091, 092, 101, 102, 111, 112, 121, 122

I'd need to obtain a pivot table with a column for each of the last 10 seasons (081, 082, 091, 092, 101, 102, 111, 112, 121, 122) plus one containing the valua of the residual seasons.

I tried using a concat function but it runs too slowly: anybody has any suggestion regarding this situation ?

Thanks

Luca

2 Replies
johnw
Champion III
Champion III

Perhaps add a SeasonGroup field. I'm sure what your actual logic for season is, so I can't give an exact expression, but this sort of form:

if(this is one of the last 10 seasons, Season, 'Others') as SeasonGroup

lucarizziero
Partner - Contributor III
Partner - Contributor III
Author

Hi John,

But that field would not be influenced by the filters: while I need it.

Any suggestion regarding the use of a linear table instead of a pivot one ?

Thanks