Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
nikhilgarg
Specialist II
Specialist II

Prob in Bar Chart in QLiksense

Hello All,

In my qliksense, i ahve created a bar chart for Cur Yr and Prev Yr sales. But when i hover on any bar, it is showing other yr value as 0. Can anyone tell em how to suppress this?

Thanks,

Nikhil garg

10 Replies
Anonymous
Not applicable

Have you included cur Yr sales as another measure? Try that expression and check whether it is giving some value other than 0

Chanty4u
MVP
MVP

take a copy of chart and

delete one measure and check once and delete other and keep first and see.

and change the chart to straight table and see how the values look like?

devarasu07
Master II
Master II

Hi,

Try below ways,

1) suppress null or 0 value from your chart object  (fyi, uncheck below check box from your year and measure field)

Capture.JPG

2) by using set analysis method exclude those Sales 0  year value from chart list

let say example,

for current year sales

sum( {$<Year={"$(=Max(Year))"}, Sales={">0"}>} Sales)

for previous year

sum( {$<Year={"$(=Max(Year)-1)"}, Sales={">0"}>} Sales)


3) if your going to show in your bar always selected year and previous year then just use above two expression.


ThanksDeva

nikhilgarg
Specialist II
Specialist II
Author

Hey,

1: Include Null values is already unchecked.

2: Set analysis didnt worked as expected.

Any other way?

nikhilgarg
Specialist II
Specialist II
Author

Yes,

I ahve 2 measures:

curYrSales: LEt say value 100

PrevYrSales: Let say value 150

Now, if i hover on prev year, i got to see CurYr =0 and PrevYr = 150

aNd same for curYr. Any solution to this?

nikhilgarg
Specialist II
Specialist II
Author

HEy,

Problem is i am using Pivot table. ANd in pivot table, we dont have background color option in dimension

I cann't use straight table because, i ahve to dynamically name my measures as:

1: Sales' $(=Only(Year)-1) and this function will only evaluate in Pivot Table.

ANy other option?

Anonymous
Not applicable

But, you have mentioned the problem is with hover in bar chart. Right?

How did pivot chart come to picture?

nikhilgarg
Specialist II
Specialist II
Author

Hey,

pls ignore my pivot chart reply, that was by mistake

My problem is with bar chart:

Yes,

I ahve 2 measures:

curYrSales: LEt say value 100

PrevYrSales: Let say value 150

Now, if i hover on prev year, i got to see CurYr =0 and PrevYr = 150

aNd same for curYr. Any solution to this?

Anonymous
Not applicable

Is it possible to attach sample qvw or measure expressions?