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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
inam
Contributor III
Contributor III

null issue (Blank value Merge to actual value)

Hello Community

in my data I found blank value So I want all my blank value merge into actual data.

current output:-

inam_0-1689141548202.png

here I found 58 blank data in Dom holiday FIT so i want to apply below formula for each field(direct, email + ma, organic, paid & referral)

for example:-   

(16*58)/506

16 = Direct total as per the report

58 = No source data (blank data)

506 = total of direct, email + ma, organic, paid & referral

how I apply this formula in my script? I have given only 1 date ..I have  to calculate for 1 month.

 

Labels (1)
2 Replies
Mark_Little
Luminary
Luminary

There are a couple of ways, but you are going to need to do a resident load and a group by something like

LOAD

DATE,

(IF(PROD_TYPE= 'Direct', SUM(VALUE)) * IF(ISNULL(PROD_TYPE))) / SUM(PROD_TYPE) AS New_Value

RESIDENT Table

Group By Date;

Value being the column your summing in your table, If you are count the field just replace the sum with a count.

 

inam
Contributor III
Contributor III
Author

i have used this formula & its working fine.

formula :-  =count(PROD_TYPE)+count(PROD_TYPE) * count({< PROD_TYPE = {''}>}
                     total <[Product Type]> PROD_TYPE) /count(total <[Product Type]> PROD_TYPE)

but I got null value .can you please help how I remove this  65 & 37 below values

inam_0-1689225188421.png

 

so if I remove 65 i want total should be 499.  same as if 37 remove total should be 205

 

I have used backend script below

inam_1-1689225188533.png