Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Make a bar chart from a straight file.

Hi everyone,

Can anyone help me with my problem I cannot create a simple BAR Chart graph in QLIKVIEW.

Attached is the file I want to create. Note the each of the column is the actual column from the file.

How can I put in X-AXIS the months against the TYPE?

Thank you.

4 Replies
manisha_uit
Creator
Creator

Hi,

In the script, you can use cross table, something like this:

CrossTable(Month, Data, 3)

LOAD Year,

     Country,

     Type,

     Apr,

     May,

     Jun,

     ...

     ...

FROM .....

Now, you will have a field 'Month' created with all the month names in it. You can use that field in your chart

Thanks,

Manisha

Not applicable
Author

Hi,

While loading the data use cross table option and take qualifier field as 3

like this

bar_chart.png

or use this script directly

CrossTable(Month, Data, 3)

LOAD Year_,

     Country_,

     Type_,

     APR,

     MAY,

     JUN,

     JUL,

     AUG,

     SEPT,

     OCT,

     NOV,

     DEC,

     JAN,

     FEB,

     MAR

FROM

D:\Vivek\BAR_CHART.xlsx

(ooxml, embedded labels, table is Sheet1);

Now  'Month' and 'Type_'  in Dimension and =Sum(Data) as Expression

Your bar Chart will be like this

chart.png

Regards

Vivek

Not applicable
Author

Thank you so much. It worked. Very well explained for a noob.

Not applicable
Author

thank you.