Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Bar Chart

Hi Friends

I have some data in the following table and I want to create bar chart in QV with the data in the table

YEARTYPEMAY-JUN-JULOTHER-MONTHS
2013A40,017,693125,167,132
2013B938,739,8042,474,358,841
2013C23,725,41874,356,983
2013D 2,505,4411,104,019
2014A32,453,750127,146,085
2014B819,656,7142,190,669,436
2014C38,339,791105,759,591
2014D214,836,239450,894,057
2015A52,992,68183,557,779
2015B930,098,5742,502,012,638
2015C42,550,921119,393,652
2015D251,770,244613,886,830

In the chart I have in my mind I want the following

X axis should represent  years and two bars for 1. MAY_JUN_JUL

                                                                     2. OTHER MONTHS

Two Bars should have relative % amount shown above representing type A B C and D

Pls help me to create this chart with a sample QV document

14 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Chart: Barchart

Dimension: YEAR, MonthGroup, TYPE

Expression: =Sum(Value)/Sum(TOTAL<YEAR, MonthGroup> Value)

Hope this helps you.

Regards,

jagan.

upaliwije
Creator II
Creator II
Author

Thanks Manish

Your reply perfectly matches my requirement. In my actual QV document Bars are of different length. Pls help me to correct it I have attached my QV.

MK_QSL
MVP
MVP

You have to change the expression...

SUM(CRE_PAID_AMOUNT)/sum(TOTAL <PAID_YEAR,PERIOD>CRE_PAID_AMOUNT)

upaliwije
Creator II
Creator II
Author

Thanks a lot

jagan
Luminary Alumni
Luminary Alumni

Hi,

You should not use {} for Total parameters, try below expresison

SUM(CRE_PAID_AMOUNT)/Sum(TOTAL <PAID_YEAR,PERIOD> CRE_PAID_AMOUNT)

It is working as expected.

Regards,

Jagan.