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

Replacing Null/Missing with Numeric zero for 2 dimentions

Hello All,

I have a pivot table with one vertical dimension and one horizontal dimension. There is a situation where a specific combination of

dimensional values is not represented in the data but still has a cell in the pivot table. Both

dimensional fields exists in the same data model table. Hence, i am getting type of missing values with just one data model table and two dimensional fields.

look at the example below:-

missing.png

In the example shown in the picture, there are amounts for all quarters in 2011 but not for Q3 and

Q4 2012. When the pivot table is calculated, an algorithm loops over all records in the database.

Since there are no data records for the last two quarters, the consequence is that the expression is

never calculated for these cells (middle and rightmost tables).

Is there a way if i could replace the MISSING(-) values with Numeric 0? May be through set analysis?

Thanks a lot for the help.

Kind Regards,

Varun

16 Replies
Anonymous
Not applicable
Author

Properties->Presentation->Missing Symbol(change to Zero)

If this doesn't work send me the expression you have used.we will change that to display zero

Not applicable
Author

Thanks for your response, but you know i have already tried it. Its does change missing values to 0 but still i am not able to perform any calculations on that(because this 0 is being treated as Character string), what i need here is Numeric String. I am pasting my expression below.

if(sum([TotalRevenue])='',0,  sum([TotalRevenue]))

Later there is a need to change this pivot to BAR char

Anonymous
Not applicable
Author

if(isnull([TotalRevenue]),0,sum([TotalRevenue)

Try this and adjust the brackets accordingly and let me know if this works

Not applicable
Author

Still it is not working ..

Anonymous
Not applicable
Author

can you send me the sample application with the issue

Not applicable
Author

There you are, Thank you very much for spending time on this.

aveeeeeee7en
Specialist III
Specialist III

As Jebamalai said, it is giving answer when you are Missing Symbol with 0.

See the Attachment.

Not applicable
Author

Thanks for giving it a try, but i have tried this already. in your solution 0 is appearing as character string so i cannot perform any calculations using this.. I need to have numeric 0. I need to divide each column by Row totals.

Anonymous
Not applicable
Author

Here you are.