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: 
Not applicable

how to replace NULL value as top most value in pivot table?

Hi,

Can anyone suggest me how can I get the replaced NULL value as top most value in pivot table? please see attached. As I replaced the Null Values with 'Not Default UTD' . I would need this at the starting of the column values.

Thanks.

1 Solution

Accepted Solutions
eduardo_sommer
Partner - Specialist
Partner - Specialist

There is a simple way to do this. Before you load the main table, include the inline load below:

Labels:

Load * INLINE [

AgeSummary_March

Not Default UTD

1Month

1month

2months

3months

4months

5months

6months

7-11monts

12months+

];

It's importante that the name of the column, and the labels are exactly the same as in your table.

In the pivot table (order tab) choose input order. Since the inline load is executed before the load of your table, it will determine the input order.

Let me know if this worked for you.

View solution in original post

27 Replies
Not applicable
Author

Please see attached.

rustyfishbones
Master II
Master II

So you may need to sort by the Expression!!

Not applicable
Author

I would need output as in attached.

Not applicable
Author

Easiest way in the backend create a sort order and map it to the table with that field in, then just sort by the newly created field

Not applicable
Author

Thanks any example please?

Not applicable
Author

Thanks. Tried but it's not working. any solution please?

Not applicable
Author

Map1:

MAPPING LOAD * INLINE [

FieldIWantToSortPossibleValues,SortOrder

1 Month,1

2 Month,2

];

LOAD FieldIwantToSort,

     ApplyMap('Map1',FieldIWantToSort,999) AS SortOrder

     .

     .

     .

FROM ...

Sort via expression on chart and input =SortOrder

SunilChauhan
Champion II
Champion II

in sort expression

use

wildmatch(AgeSummaryMarch, null())

or use ' ' in place of null() in above exp

and use ascending or descendeing and see result

Sunil Chauhan
Not applicable
Author

when I am executing this it is showing a error as path specified can not found