Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Draw a line between two calculated fields

Hi Experts

Pls find the attached dashboard and expected dashboard, below table is the source file for the dashboard.

Year /QuarterProductPrice
201001LAPTOP24000
201001LAPTOP23450
201001LAPTOP21455
201001LAPTOP63221
201001LAPTOP67634
201001LAPTOP14335
201001LAPTOP67533
201001LAPTOP15457
201002LAPTOP44275
201002LAPTOP35432
201002LAPTOP55842
201002LAPTOP95657
201002LAPTOP45423
201002LAPTOP34765
201002LAPTOP35462
201003LAPTOP87674
201003LAPTOP85645
201003LAPTOP53644
201003LAPTOP54343
201003LAPTOP46242
201003LAPTOP45467
201003LAPTOP46442
201003LAPTOP43323
201003LAPTOP65623
201003LAPTOP57656


I am taking year / Quarter field on x-axis and Count(product) on y-axis (which will be in BAR CHART)

In my example I have added two more calculated fields in expression tab.

Count(product)+5 and Count(product)-5. (Which will be Symbol in display option).

Now I want to draw a line in between Count(Product)+5 and Count(product)-5. pls see the attached screenshot for clarification.

So how to achieve this to draw a line between these two calculated fields.

Thanks,

15 Replies
Not applicable
Author

Hi HD, there is one more issue has come,

when I select particular year, the error bars values end out of the chart scale.

Do you have any option to select the error bars value should not out.

Thanks,

Not applicable
Author

Nope, I got the solution.

Thanks,

Not applicable
Author

Hi HD,

I would like put one message in the BAR chart.

Condition is : If Count(Product)<5 then Chart should be blank with the message "No product calculation because the Count(Product)<5"

How to implement this, pls guide me.

Thanks,

Not applicable
Author

Hi tims,

You can write Your condition in "calculation condition" (in chart general tab), then in "error messages" (The same tab) option input Your message.

Enjoy

Not applicable
Author

Hi tims,

You can write Your condition in "calculation condition" (in chart general tab), then in "error messages" (The same tab) option input Your message.

Enjoy

hdonald
Creator
Creator

Hi,

I might try adding an 'IF' statement wrapper around your error bar expression like if(Count(Product)>=5,5) to only show the error bar if values, in a given month, are in the range you want.

Then add another expression with a similar 'IF' condition to display your error message if count <5.

Make sure this expression has no line or symbol but does have either 'Values on Data Points' or 'Values on Axis' depending on where you'd prefer the text to appear.

The presentation tab has some options to show data points inside a segment (maybe vertical) for text in bar style,

Regards,

HD