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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
thomas_skariah
Creator III
Creator III

First 5 values in Pivot Table and insert blank values

Hi All,

Can any suggest this scenario.

I have a pivot table Country, Fruits and Amount. Here first I have to show first 5 fruits for each country .Second, countries like SG and UK doest have 5 fruits (3 and 4 resp) here I have to show blank field with no amount (see attached image)

(See attached QVW and Excel input).

Regards,

Tom

1 Reply
MK_QSL
MVP
MVP

As some countries don't have 5 fruits, you have to first link all fruits to all countries in script level with 0 sale or qty.

After this you can use Rank function to display them as per your requirements.