Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Bad number format visualization

Hi,

I have a problem with data visualization in QV. I extract data from OraOLEDB.Oracle and the number fields are visualized with a lot of additional zeros after decimal. For example, the field Storage_id  - which is a number - is displayed as 15 in my database but in qlikview as 15,00000000000000000000000....
This visualization is valid both in Preview Table and my objects and it creates me a lot of problem.
I don't understand the reason of it. How can I fix this problem without formatting the number?

Thank you

9 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this function while loading data from your source system.

     Just an example.

load num(num#(Fields)) as Number inline [

Fields

1.00000000000

2.00000000000

3.00000000000

];

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anonymous
Not applicable
Author

Cristina

If you don't need any decimal places at all then try:

     Floor( yournumberfiled ) as yournumberfiled )

The QlikView Help explains the floor() function.

Best Regards,     Bill

Not applicable
Author

hi

try this

LOAD *,Left(F1,Index(F1,'.')-1)  as num INLINE [

    F1

    1.0000

    2.0000

    3.0000

    4.0000

];


see attached file.

paulcalvet
Partner - Specialist
Partner - Specialist

Hi,

For my part, I did this when I extract data :

LOAD num(`YourField`,'# ##0') AS YourField,

          num(`YourField2`,'# ##0,00') AS YourField2;

SQL Select

SQL SELECT YourField, YourField2 FROM...

Regards

Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

You can just try :

Load

Field*1 as Field

;

SQL SELECT [...]

Regards

Help users find answers! Don't forget to mark a solution that worked for you!
Not applicable
Author

I wouldn't format the field...I was thinking it was something from User Preferences or from

SET ThousandSep='.';
SET  DecimalSep=',';

I have too much fields with this problem and it would take too much time to format it one by one.

Thank you


Anonymous
Not applicable
Author

Cristina

Unfortunately one often does have to do things that do take time.  But on the plus side that that is what keeps people like us in a job.

Getting things formatted properly in your load script and then saving the table in a QVD, allows later multiple re-use in dashboards & is a standard QlikView Best Practice, often referred to as a QVD Layer.

If you google QlikView QVD Layer, you'll get fair few hits explaining how to implement this.

Best Regards,     Bill

Not applicable
Author

simply try this

num(fieldname) as numberfield

Not applicable
Author

You're right, but my problem is why I can't visualize data as they are in my database. Those zeros are very strange.