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: 
Not applicable

How to display total value in line chart

Dear All,

How to display total value in line chart with two dimensions. In this example just treat as Month and Department as dimensions and 4 lines should be displayed 3 department and 1 is for total of all department.

Please let me know in case you need any more information.

Regards,

Ravi,

4 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

To achieve this you need to first change your data to this format

DepartmentMonthValue
SalesJan10
FinanceJan20
ITJan11
SalesFeb20
FinanceFeb13
ITFeb22
SalesMar11
FinanceMar14
ITMar35
SalesApr33
FinanceApr17
ITApr53
SalesMay44
FinanceMay18
ITMay45
SalesJun13
FinanceJun19
ITJun62

Check the attachment.

Regards,

Jagan.

Sokkorn
Master
Master

Hi Ravi,

Try this

1. Create new sheet with name <Sheet1 (2)> that store data like this:

DepartmentJanFebMarAprMayJunJulAugSepOctNovDec
Sales102011334413435644665522
Finance201314171819203322113422
IT112235534562623322113111

2. Load data from new sheet <Sheet1 (2)>

[Data]:

CrossTable(Months, Amount,1)

LOAD Department,

     Jan,

     Feb,

     Mar,

     Apr,

     May,

     Jun,

     Jul,

     Aug,

     Sep,

     Oct,

     Nov,

     Dec

FROM

[Copy of Sample Line Chart.xlsx]

(ooxml, embedded labels, table is [Sheet1 (2)]);

3. Create line chart with

   3.1 Months as dimension

   3.2 Three Expression

      3.2.1 SUM(Amount)    as Total

      3.2.2 SUM({<Department = {'Sales'} >} Amount)    as Sale

      3.2.3 SUM({<Department = {'Finance'} >} Amount)    as Finance

      3.2.4 SUM({<Department = {'IT'} >} Amount)      as IT

See the same attached file also.

HTH and let me know.

jagan
Partner - Champion III
Partner - Champion III

Great Job!

Regards,

Jagan.

Not applicable
Author

Hi All,

Thanks for your all replies, But i have one more solution which is Qlikview 11 There is option without writing any set analysis syntax we can get it.

But really thanks for yours help!.

Regards,

Ravi.