Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do you assign values to nulls ?

Hi,

I have data for many thousands of leads drawn into QV from Salesforce. For some of the leads, certain information is missing and the fields in salesforce have null values (literally, no value. a blank cell). For example, for the leads' marketing sources we have PPC, Media, WOM, Tradeshow, etc. and there are also many leads with just no value whatsoever.

When I create a chart in QV (for example a stacked bar chart) to show the number of leads generated per month from the different marketing source (the dimension are a time dimension and the marketing source, where the month of lead generation is the horizontal axis), the null leads do show in the stacked bar, but do not show in the legend whatsoever.

I tried to map the marketing source and assign "Unknown" to nulls (just created an excel file with the name of the marketing source on the left column and the name I want to see in QV on the column next to it), but that doesn't work. So, I'm turning to you guys. Any idea how to make it happen and have the null values appear in the legend as "Unknown" ?

Thanks!

44 Replies
MayilVahanan

HI

PFA

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

no luck

Not applicable
Author

Oh, I forgot to attach a file for mapping.

Maybe that's where we fail. Could it be ?

Not applicable
Author

please?

MayilVahanan

Hi

Attach that also.

Will Check it

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

kindly see new sheet added

thanks!

MayilVahanan

HI

I think both are same file

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

Hi Al,

Based on the latest example XLSX and using the NullAsValue, Set NullValue and NullAsNull commands I can get the table to display a label for the Null values. Is this what you were looking for?

NULLASVALUE [Original Marketing Source];

Set NullValue ='Unknown';

LOAD [Year-Month],

     [Lead ID],

     [Original Marketing Source]

FROM

C:\...\...\...\NullFiddling.xlsx

(ooxml, embedded labels, table is Sheet2);

NULLASNULL *;

Regards,

Adam

Not applicable
Author

how embarassing. my mistake. PFA

Not applicable
Author

hi, thanks.

what does the nullasnull do ?