Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
AbhijitBansode
Specialist
Specialist

Problem in Round Up of values in bar graph

Hi,

I've very urgent requirement regarding Rounding Up of values in bar graph.

please refer the attached excel sheet.

7 Replies
montubhardwaj
Specialist
Specialist

Can you please attach your sample qvw file ?

ToniKautto
Employee
Employee

Why do you think that all other graphs than P2 have rounded correctly?

The value looks correct to me since 1,575.6 is a roudned value of 1,575,560,429.9

Are you expecting 429.9 to round up to 430.0?

In that case you need to consider that the underlaying data probabaly contains more decimals so that the real value is for example 429.89999999 meaning the round up is 429.9. Such a microscopic decimal variation can occur when large numbers are calculated since all number are stored as floating point values which are not exact numbers. However, QlikView follows the IEEE Standard on how to store and calculate float values so this is according to specification.

More details on Floating point values can be found at;

http://en.wikipedia.org/wiki/Floating_point

AbhijitBansode
Specialist
Specialist
Author

Toni, values oare rouding up correctly in case of Stack chart type, but it is not happening in when bar chart type is Group.

i.e. i want

1,575,560,429.9 to be appear as 1,575.6 in both the types.

Sample application is also attached with this, pls check.

montubhardwaj
Specialist
Specialist

I wont say this is a very good workaround but offcourse it serve the purpose...Pl see attached.

AbhijitBansode
Specialist
Specialist
Author

Thank you for concern..

but is you said this is not a good workaround.

i'm still in the same problem.. i need a proper solution for this.

ToniKautto
Employee
Employee

I have no quick explanation to this, it is a bit odd behaviour.

Please report it to QlikView support for further evaluation;

support@qlik.com

kji
Employee
Employee

Well the explanation is basically that in Grouped mode the number shown is the value calculated by the chart expression (treated as text not number), whereas for the stacked chart the number is the sum of the values of all the stack segments formatted with the axis setting for number format.

This means that for the Stacked chart the Value shown will be divided by 10e6 as that is the unit of the axis, whereas that will not happen in the grouped one.

This has appeared after we wanted to simplify chart settings by turning "Text on Datapoint"/"Number on Datapoint" into a single setting "Value on Datapoint", using the old "Text" option wherever available.