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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
lalitkgehlot89
Partner - Creator II
Partner - Creator II

Need logic help for Pie chart creation.

Hi,

In attached sample data, I want to create the pie chart for deduction. But all the Fields as column here.

Please help me out to right the logic on front end. or on the basis of inline table.

Thanks,

Lalit Kumar

1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Lalit,

Try the following code in back end

table1:

CrossTable(Deduction, Data)

LOAD LinkDate,

     [Deduction for EGCV],

     [Deduction for Cost of Coal],

     [Deduction for Unloading Charge],

     [Deduction for Imported Coal],

     [Mega Deduction]

   

FROM

(ooxml, embedded labels, table is Sheet1);

and in front end add "LinkDate"  as dimension and add the following expression in pie chart object:

sum(Data)

View solution in original post

1 Reply
Anonymous
Not applicable

Hi Lalit,

Try the following code in back end

table1:

CrossTable(Deduction, Data)

LOAD LinkDate,

     [Deduction for EGCV],

     [Deduction for Cost of Coal],

     [Deduction for Unloading Charge],

     [Deduction for Imported Coal],

     [Mega Deduction]

   

FROM

(ooxml, embedded labels, table is Sheet1);

and in front end add "LinkDate"  as dimension and add the following expression in pie chart object:

sum(Data)