Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
leocattqv
Creator
Creator

decimal Numbers and Rounding...

All, I have been lurking on the boards trying to get an answer to this and Im just not getting it I suppose.

I have a table that I am getting the PValue from.  this is from Excel.

 

WeekField 1Field 2Pvalue
Week 12765480.01736
Week 23541500.01412
Week 311887730.006141
Week 46549820.012521
Week 55511670.012158
Week 66869610.00888
Week 74193800.019079
Week 84295710.016531
Week 94052840.020731

When I put the same data into Qlik, (inline table - for testing purpose)  I get this

  

WeekField 1Field 2PValue
616496621
14827651
25035411
373118871
48265491
56755111
66168691
78041931
87142951
98440521

Again, I am reading the boards and Im confused as there is talk of making the calcs before the data goes to qlik?  this should be a simple thing shouldnt it?

Any help would be appreciated.

thanks

-L

4 Replies
yujiyamane
Creator II
Creator II

Hi Leo,

Does the inline load look like as below?

LOAD * INLINE [

    Week, Field 1, Field 2, Pvalue

    Week 1, 2765, 48, 0.01736

    Week 2, 3541, 50, 0.01412

    Week 3, 11887, 73, 0.006141

    Week 4, 6549, 82, 0.012521

    Week 5, 5511, 67, 0.012158

    Week 6, 6869, 61, 0.00888

    Week 7, 4193, 80, 0.019079

    Week 8, 4295, 71, 0.016531

    Week 9, 4052, 84, 0.020731

];

It works fine to me as per below. Please find the attached qvw for details.

Capture.PNG

leocattqv
Creator
Creator
Author

thank you for your time Yamane,

My load doesnt include Pvalue - I need to be able to calculate in Qlik

Data:

Load * Inline

[

Week,ShipQty,CompQty

1,2765, 48

2,3541, 50

3,11887, 73

4,6549, 82

5,5511, 67

6,6869, 61

7,4193, 80

8,4295, 71

9,4052, 84

];

yujiyamane
Creator II
Creator II

Thanks Leo, Try below query. I have attached the sample application as well.

Data:

Load *,CompQty/ShipQty as Pvalue Inline

[

Week,ShipQty,CompQty

1,2765, 48

2,3541, 50

3,11887, 73

4,6549, 82

5,5511, 67

6,6869, 61

7,4193, 80

8,4295, 71

9,4052, 84

];

vishsaggi
Champion III
Champion III

Can you share your complete script where you are getting this 1 for Pvalue. Did you check the Number tab in your chart properties of your straight table. ?