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: 
Paknanarn23
Creator II
Creator II

What do I have to do to get the graph to look like this?

I have 2 data tables, using this code to find values. and find the percentage

Paknanarn23_0-1675819119242.pngPaknanarn23_1-1675819143614.png

Now I want to plot the values. by making a percentage and the total values ​​are plotted like this, what should I do?

Paknanarn23_2-1675819187173.png

 

Labels (2)
2 Replies
sidhiq91
Specialist II
Specialist II

@Paknanarn23  Could you please post some sample data and also elaborate a bit more on your expected output.

Paknanarn23
Creator II
Creator II
Author

I have graphed it now. But the graph doesn't turn out the way I want. Details are already in the post

Paknanarn23_0-1675836261984.png

In my graph there are KCe_Date and layer_no, the code fragment is as follows.This is the code used to make the bar graph

sum({<OP_WorkCenter = {'MAOI'}>}CQ_PNL_OUTPUT_MAOI) / sum(total <KCE_Date> {$<OP_WorkCenter={'MAOI'}>} CQ_PNL_OUTPUT_MAOI)*100

This is the line graph code.

sum(total <KCE_Date> {<OP_WorkCenter = {'MAOI'}, LAYER_No={'04','06','08','10','12','14','87'}>}CQ_PNL_OUTPUT_MAOI)