Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
shree909
Partner - Specialist II
Partner - Specialist II

Barchart help

Hi i have a bar chart with company name and year id as dimensions and one metric

for year id i have 5 years,0,1,2,3,4,. the problem is when i display the chart  and show values on data points that works perfect.

the issue is i want to show the datapoint values for only  0 yr and remaining values should be hidden

can this be done, help needed

1 Solution

Accepted Solutions
Not applicable

Hi Shree,

You can expand the expression by clicking on the + sign, then select the option "show value" and on the righit hand side, in the defenition area write your condition based on which the value should be shown. in your case yr=0

Regards

Satheesh

View solution in original post

9 Replies
avastani
Partner - Creator III
Partner - Creator III

if you want to show data point for only Year 0 but still show all other point... then use another expression with set analysis for Year={0}

use Calculated Dimension.

if(Year = 0, Year)

MayilVahanan

Hi

     You can use text in chart properties in Presentation tab..I think show values on data point is have no option like that..

     something like in "text in chart properites"=sum({<Year = {0}>}Sales)

Hope it helps.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
shree909
Partner - Specialist II
Partner - Specialist II
Author

thanks for the reply, but i want to show all the years but datapoints should be shown for 0 yr on the graph remioaning yr datapoints on graph should be hidden,

in bar chart  expressions tab , we have 'values on datapoints'. when i chak that i shows for all the years.

i want to restrict to only one year

avastani
Partner - Creator III
Partner - Creator III

Please clarify with a visual in excel.

Do you want a trend line for all years but Data Point marking Year 0 with a Dot?

Or do you want data to show only for Year 0 and nothing else?

If the latter, then classic set analysis does the trick SUM({ Sales). Even calculated dimension works with If(Year = 0, Year)

Thanks.

Amir.

=====================

Amirali Vastani

Tel: 646.773.7936

Not applicable

Hi Shree,

You can expand the expression by clicking on the + sign, then select the option "show value" and on the righit hand side, in the defenition area write your condition based on which the value should be shown. in your case yr=0

Regards

Satheesh

shree909
Partner - Specialist II
Partner - Specialist II
Author

this is how it should shown on graph

MayilVahanan

Hi

     You can try like this,

     use company name as dimension and use five expression for years like

     =sum({<Year = {0}>}sales)

     = Sum({<Year = {1}>}sales) like this..

     and tick value on show point for first expression

hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
shree909
Partner - Specialist II
Partner - Specialist II
Author

Thanks guys, it works  perfect

avastani
Partner - Creator III
Partner - Creator III

What I mentioned about second expression shudl do the trick. use combo chart. should do fine. or the show value trick will also do it.