Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
phiilip
Contributor II
Contributor II

How to show data labels for only one line in a line chart that consists of four lines

Hi!

I have tried countless resources but I can't seem to find any solution for this, in my opinion, very simple problem.

So I have a line chart consisting of four different measures over time (week). Now I want to show the data labels for one of the lines, let's call it line A, but no data labels should appear for the other three lines. How can I make this work? Is there a simple solution that I somehow have missed?

Labels (1)
8 Replies
marcus_sommer

Maybe it's more suitable to skip the labels completely and highlighting the appropriate line with a specific color or a similar property and adding the relevant information into the chart-title.

morgankejerhag
Partner - Creator III
Partner - Creator III

Unfortunately you can't do that in the current version of Qlik Sense. There is an suggestion for this that you can vote on: https://ideation.qlik.com/app/#/case/274656?cpid=c2ec6f99-1fd5-44e1-b266-06e67b53afd7

phiilip
Contributor II
Contributor II
Author

I realize now I messed up my problem description. I meant data VALUES, not data labels. Is there a solution when I want to show the data values for one measure but not for the others?

marcus_sommer

Just to clarify - the chart contained 1 dimension + 4 expressions or 2 dimensions and 1 expression? The solution for your issue may be to reverse the dimension/expression structure.

phiilip
Contributor II
Contributor II
Author

The chart consists of 1 dimension (week) and 4 expressions. It's a process control chart that consists of a lower limit, an upper limit, an average and a series of measurements

marcus_sommer

I would expect that there is a property for each expression to show or hide the data-values (at least QlikView has them). If there is not then take a look if there is a property for each expression to control the color of the values - and if you may set the unwanted ones to argb(0,0,0,0).

phiilip
Contributor II
Contributor II
Author

In Qlik SaaS, which is the version where I do my work, there is no such property for an individual expression. You can only toggle on or off the data values for the chart itself, which means the values are either on for all  four expressions, or off for all of them. There also is no option to color data values.

Do you have any other suggestions? I can't fathom that such a simple change is so complicated to implement...

phiilip
Contributor II
Contributor II
Author

Okay so for anyone in the future having the same problem, I finally found a workaround:

For each of the expressions whose data value I want to hide, I set their number formatting to 'Duration' instead of Auto, and then for Format Pattern I simply set " ".