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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
johngouws
Partner - Specialist
Partner - Specialist

Avoid showing horizontal line in chart

Morning,

My chart shows Accumulated Targets and Sales. My expressions for Sales currently is:

=SUM({<Sales_Fin_Year={"$(=max([Display Fin Year]))"}

     , Sales_Fin_Period={"$(=max(month(Today())))"}

     ,Date={"<$(=max(date(Today())))"}

,      DocumentType={'3','4'},[Unit Sell]={'>0'} >} TotalLineSale)

I wonder if there is a way of not showing the section of Sales line, circled in black.

Any ideas are much appreciated.

Line.PNG

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Click on the + in front of the expression on the expressions tab, select Background Color, and enter an expression in the Definition input field that will make the background color 100% transparent if the current value of the expression is the same as the previous one. Something like:

=If(Above(SUM({ .... }TotalLineSale))=SUM({ .... }TotalLineSale). argb(0,0,0,0), color(2))


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Click on the + in front of the expression on the expressions tab, select Background Color, and enter an expression in the Definition input field that will make the background color 100% transparent if the current value of the expression is the same as the previous one. Something like:

=If(Above(SUM({ .... }TotalLineSale))=SUM({ .... }TotalLineSale). argb(0,0,0,0), color(2))


talk is cheap, supply exceeds demand
johngouws
Partner - Specialist
Partner - Specialist
Author

Hello Gysbert.

I was bringing in target and sales date separate. This played a bit of havoc with what I was trying to achieve in the chart. After sorting this out, your solutions works 100%, thank you.

Line2.PNG