Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Daniel77
Creator
Creator

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
Former Employee
Former 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
Former Employee
Former 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
Creator
Creator
Author

Thank you Hic,

 

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

 

Daniel