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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
LoretaS
Contributor II
Contributor II

Line Chart with total line

Hi, I am creating line chart to compare each month solution rate. Is it possible to add avg/total one in the chart as well?

Example from the excel with total dash line:

LoretaS_0-1743080936983.png

I create pivot table with monthly/yearly data, so add totals it is possible, but how to add it in line chart as well?

 

Labels (1)
3 Replies
Chanty4u
MVP
MVP

Add secondary measure 

Avg(Aggr(Sum(Solutions)/Sum(TotalCases), Month, Year))

 

LoretaS
Contributor II
Contributor II
Author

Hi, How can I add secondary measure on this line chart when I have two dimensions? QS allows only alternative measure..
LoretaS_0-1743576072311.png

 

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

create grouping total dimension and use it as a dimension of the chart - it removes all complexities from the expression and can be easily created in load script.

cheers

monthyear, grouping dim

202101, 202101

202102, 202102

202103, 202103

202101, total

202102, total

202103, total

..., ....

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.