11 Replies Latest reply: Oct 19, 2015 8:36 AM by Simon Hogg RSS

    Importing of txt files

      Hello, I am new to qliksense and trying to learn it. I have a dataset (txt file), have imported it yet. And when I open the datamanager its showed like a table, but the problem is in the visualization of the data. As dimension it shows the dates that right but when I try to add KPI there is only the range from -1 to 1. But there are huge numbers in the txt file, I think qliksense doesn't recognise these numbers. Thanks in advance.




        • Re: Importing of txt files
          Robert Mika

          Could you post the text file or the app itself?

          It looks like you have one big field.


          Try to use '|' as delimiter in "Trennzeichen"

          • Re: Importing of txt files
            Simon Hogg

            If you're seeing the 'correct' data (separated into different fields) in DataManager, then it's already picking up the correct delimiter (Trennzeichen).


            The issue is then possible that it is seeing the numbers as text.


            1. Turn on "show data points" in your chart.  You will see clearly if the datapoints are being shown as 'zero' or are missing completely
            2. Are there any text-values in *any* of your data in DMBTR?  One NULL or text value will prevent it from showing the other numbers as numbers.
              • Make sure you check the footers of the file as well
              • It might be easier to edit the input file, or stick it into Excel and save as "tab-delimited" after you've cleaned it up
              • If you don't want to clean up the data in Excel, use the following two commands at the top of your load script;
                • NullAsValue *;
                • Set NullDisplay = 0;            //the semicolons are important
              • This will tell the load script to replace all athe NULLs with zeroes (this may or may not be desirable and will affect your COUNTs, etc.
            3. If there are no strange values in your source data and Qlik still thinks the data is text, then edit the load script;
              • Check your LOAD script and change;
                • DMBTR,        to
                • NUM(DMBTR) as DMBTR,       //(don't forget the comma!)

            Feel free to ask any further questions, or mark the answer as helpful, or correct (if it is!)

              • Re: Importing of txt files

                Thank you very much but the column contains only monetary numbers in thousand steps, ist an imported txt file,

                is it still possible to rewrite the variables in the Skript of Qliksense? My load source looks like following:




                FROM [lib://....../BSAD.txt]

                (txt, codepage is 1252, embedded labels, delimiter is '|', msq);

                  • Re: Importing of txt files
                    Simon Hogg

                    Are you able to post the whole .txt file?  (Compress it in a .zip file if possible/necessary)?


                    (Also, I just noticed your dates aren't showing as dates - they are just labels for the axis.  That's a separate issue but perhaps we can work on that at the same time?

                      • Re: Importing of txt files

                        Unfortunately I am not able to send the whole txt file, here is a part of the text file. It Looks completely the same.























                  • Re: Importing of txt files
                    Rob Wunderlich

                    I think the problem is with your measure. You appear to be getting True/False values. Can you post your measure expression please?



                      • Re: Importing of txt files
                        Simon Hogg

                        Good point.  You probably want that measure to be Sum(DMBTR)  -  instead of just DMBTR.


                        (I don't think you're seeing True/False - the scaling from -1 to 1 is just the default scaling for an all-zero chart. That's why I suggested adding markers for the data points; it will give us an idea of what's happening).


                        (I'm speaking from experience! I started off in the same place - trying to get charts to show correctly with incorrect all-zero data).

                        • Re: Importing of txt files

                          Hello thanks,

                          but I don't have a measure I am still a beginner and wanted to simulate a simple data visualisation.

                          For measurement I think I Need more time. I just added as Dimension the date and as KPI DMBTR

                            • Re: Importing of txt files
                              Simon Hogg

                              They are the same things, just different names;

                              • KPI = Measure = Key Figure  (all depends on vendor's labelling).


                              In Qlik Sense the visualisation will tell you what you need; for examle, One Dimension and One Measure.  Your measure (KPI) will be whatever you want it to be, but remember you need to aggregate the measure.


                              For example you might have;


                              [Customer Number]

                              [Invoice Number]



                              From these two things you can define all sorts of measures (KPIs);


                              Total Value per Customer = Sum([Value])

                              Number of Customers = Count(Distinct([Customer Number]))

                              Average Invoice Value = Sum([Value])/Count(Distinct([Invoice Number]))


                              So the measures (KPIs) come after the data load, depending on the business requirements.