Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to rename null value to some default value in drilldown group


Hi all,

i have drill down group on supplier.supplier at global,domestic,local .

my fact table and dimesion table are linked with supplier code. i am getting '-' in bar chart dimesion  for no matched supplier . i want remname it to

'unmapped supp' .how  i can get it.

thanks in advance .

Charan.

1 Solution

Accepted Solutions
Not applicable
Author

Hi Charan,

so you have proper codes in your fact table but no corresponding value in your dimension table causing you a missing value null. So there is no row to remap at present.


What you can do is


FactTable:

Load

supplier_code

your field

your field

......



Supplier_Dimension_temp:

Load Distinct

supplier_code

Resident FactTable;


left Join (Supplier_Dimension_temp)

Load

supplier_code

local supplier

domestic supplier

global supplier

from ......(your dimension source)


~~ at this point you have real nulls in your dimension table rather then missing values, so you can remap accordingly.

either using Gabriels map using or an isnull check

Map_Supplier_Null:

MAPPING LOAD
NULL(),
'unmapped supp'
Autogenerate 1;


Map local supplier, domestic supplier, global supplier using Map_Supplier_Null


Supplier_Dimension:

noconcatenate

Load

supplier_code

local supplier

domestic supplier

global supplier

Resident Supplier_Dimension_temp;


Drop table Supplier_Dimension_temp;


something along those lines should do the trick for

hope that helps

Joe

View solution in original post

19 Replies
swuehl
MVP
MVP

Have you checked the appropriate input boxes on presentation tab of the chart properties dialog?

sunilkumarqv
Specialist II
Specialist II

HI charan

use isnull function

If(isnull(Field)='Name',else codition)

jpenuliar
Partner - Specialist III
Partner - Specialist III

I would do that in script:

If(IsNull(Supplier),'UnNamed Supplier',Supplier) as Supplier,

Not applicable
Author

Hi swuehl,

i want to rename the '-' to 'unmapped  supplier ' as value of field in drilldown group.

thanks..

Not applicable
Author

hi all,

it is not single field .it is a drill down group used as dimmesion.

thanks..

jpenuliar
Partner - Specialist III
Partner - Specialist III

and what are the fields in your drill down group?

Not applicable
Author

supplier are at 3 levels.

global suplier

domestic supplier

local supplier

above field are in supplier drill down group

sunilkumarqv
Specialist II
Specialist II

try this

If(getcurrentfield(yourgroupdimension)='' ,'un named ',Supplier)


share sample data

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

I will create MAPPING table to handle NULL values as below

Map_Supplier_Null:

MAPPING LOAD
NULL(),
'unmapped supp'
Autogenerate 1;

And before your FACT table have another script like this

MAP [matched supplier] USING Map_Supplier_Null;

This will ensure all NULL values are renamed to unmapped supp.