# New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

New Contributor III

## stacked bar in qliksense

Hi all,

I would need help on the stacked bar chart in qliksense.

I have 3 columns of data i.e Department, Revenue Original, Revenue Estimated.

Now i have to calculate revenue ratio i.e revenue original / revenue estimated -

who calculate the percentage (revenue original/revenue estimate) / total of both sum and if the ratio is <1 make it revenue failure if not revenue failure.

and we need to count the number of revenue failure and revenue pass percentage.

those percentage graph should be on bar chart .

9 Replies
New Contributor III

## Re: stacked bar in qliksense

Esteemed Contributor

## Re: stacked bar in qliksense

sthing like this?

or sthing like this:

New Contributor III

## Re: stacked bar in qliksense

Second style but inside the bar percentages are needed- can you please share it

Esteemed Contributor

## Re: stacked bar in qliksense

You cannot have the percentage inside of the bars in the native bar chart of qlik.. maybe an extension would allow it (see this one : Qlik Branch )

as for the expressions used:

dim:

Department

measures:

Sum([Revenue Original]) / (sum({<Department>}[Revenue Estimated])+sum({<Department>}[Revenue Original]))

Sum([Revenue Estimated]) / (sum({<Department>}[Revenue Estimated])+sum({<Department>}[Revenue Original]))

Esteemed Contributor

## Re: stacked bar in qliksense

have u tried using the 2 expressions?

New Contributor III

## Re: stacked bar in qliksense

yes but the logic i need is count of % <1 and count of % >1
i need to have those

New Contributor III

## Re: stacked bar in qliksense

New Contributor III