Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

Duplicate values in bar Chart

Dear experts,

I am trying to create a bar chart with 2 dimensions, however I am ending up with duplicate values,

the expressions are as follows:

Bar chart .. Sum(cash)

line graph .. Sum({$<BDF_Type={"*profit*"}, YEAR = {'2015'} >} cash) / Sum({$<BDF_Type={"*revenue*"}, YEAR = {'2015'} >} cash)

I have attached screen shot for your reference.

Kind regards,

Royce

19 Replies
Chanty4u
Not applicable

Re: Duplicate values in bar Chart

did you tried to check the supress null values in dimension tab?

sasikanth
Not applicable

Re: Duplicate values in bar Chart

HI,

instead you can go for a single dimension MonthYear like 2015-Jan, 2015-Feb etc.

Ex: MonthName(date-Field)

Not applicable

Re: Duplicate values in bar Chart

Yes I have, and it does not seem to work !

Chanty4u
Not applicable

Re: Duplicate values in bar Chart

in screen shot its not there ..same do in presentation tab

Not applicable

Re: Duplicate values in bar Chart

It seems to be showing the value for every month, is there a way to code the expression in a way that it only selects the year and not the month ?

Not applicable

Re: Duplicate values in bar Chart

tried it out and it does not seem to work as well

Not applicable

Re: Duplicate values in bar Chart

I have just changed it, and it still does nothing, the same chart comes up

sasikanth
Not applicable

Re: Duplicate values in bar Chart

try to remove YEAR filter from your second expression. so that the amount will be divided based on specified time dimension values.

Sum({$<BDF_Type={"*profit*"} >} cash) / Sum({$<BDF_Type={"*revenue*"}>} cash)

Chanty4u
Not applicable

Re: Duplicate values in bar Chart

try  below expression for bar

=sum(Distinct Cash)