Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Qlik Cloud Maintenance is scheduled between March 27-30. Visit Qlik Cloud Status page for more details.
cancel
Showing results for 
Search instead for 
Did you mean: 
Daniel77
Contributor III
Contributor III

Sum() is returning 0 and i dont know why

Hi Experts,

I hope you can help me today.

I have a table with the Dimensions:

=If([Standard Name] = 'HIGG FEM',[Production Facility T1])

[Environmental Management Self]

 

In a table this is returning the expected values:

Daniel77_0-1674122740256.png

All i need is to convert this to a bar chart.

 

then i get the below message:

Daniel77_1-1674122785780.png

 

SO as normal i Sum the values:

Sum([Environmental Management Self])

 

Now i receive all 0 in the chart:

Daniel77_2-1674122856455.png

 

I have tried the following in the load:

Num(dim) as dim in the load

if is null(),'0', dim as dim

I just cannot get this to work and i have no idea why.

Can anyone give any assistance please?

Thank you

 

 

Labels (3)
1 Solution

Accepted Solutions
hic
Employee
Employee

The numbers are left-aligned, meaning that they are not interpreted as numbers. They are texts.

You need to load this field (in the script) using
Num#([Environmental Management Self]) as [Environmental Management Self]

View solution in original post

2 Replies
hic
Employee
Employee

The numbers are left-aligned, meaning that they are not interpreted as numbers. They are texts.

You need to load this field (in the script) using
Num#([Environmental Management Self]) as [Environmental Management Self]

Daniel77
Contributor III
Contributor III
Author

Thank you Hic,

 

I will give this a go and let you know the outcome, thanks

 

Daniel