Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
lalitkgehlot89
Creator II
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)