Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have decimals that are computed in our system and come out to something like this 0.197378 that it cuts down to 0.1973 on reports. When I limit the decimal places in QlikView it becomes 0.1974. I have tried using the num function and cannot seem to get the floor function to work, so I wanted to see if there was another way to cut numbers off at a certain decimal and not round them.
in GPD use below expression
floor(num(Sum(Gain_lbs_b) / SUM(Processed_head) / Round((sum(AgeInDays * Processed_head) / SUM(Processed_head)), 1.0),'#.####'),.0001)
hope this helps
I would think something like:
floor(Field, .0001)
would work.
When I put my expression in the floor function it does not compute, but the num function does. Any idea why?
Hmm could you post a small sample qvw that demonstrates this?
Maybe Floor(num(Field),.0001)
This runs with no errors, but doesn't return a result.
Not sure why its not working for you. Attached is a sample. Is the number in number format?
=floor(num(0.197378,'#.####'),.0001)
or
floor(num(fieldname,'#.####'),.0001)
Does it matter that I am trying to do this in a calculated expression in a chart?
you can attached sample
we will have a look