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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pie Chart within a Pie Chart with 2 Measures and 2 Dimensions

Hi,

I am trying to generate a Pie chart within another Pie Chart.

For example: i have the data as below

PRIMARYSECONDARYPrimary PercentageSecondary Percent
AApple9100
BSamsung3725
BNokia3750
BBlackberry3725
CSamsung738
CMotorola762
DLG3100
ESony2944
ELG2956

I want to display a Drill down Pie chart, Primarily showing the Primary details - > Percentage

Later, on click of any Primary slice ( C ), i want to show the secondary details (Samsung,Motorola -> with Secondary Percentage) for that selected Primary slice.

I am trying to implement this, but am facing issues.

Can anyone please help me on this.

Thanks in Advance.

Best,

Santosh Kumari

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Create a drill down group and add the fields PRIMARY and SECONDARY to the group. Use the group as dimension in your pie chart. Use this expression if(GetCurrentField(G1)='PRIMARY', [Primary Percentage],[Secondary Percent]). Change G1 to the name of your group. See attached example.


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Not applicable
Author

PRIMARYSECONDARYPrimary PercentageSecondary Percent
AApple9100
BSamsung3725
BNokia3750
BBlackberry3725
CSamsung738
CMotorola762
DLG3100
ESony2944
ELG2956
Not applicable
Author

Hello Santosh,

You need to use the conditionnal expression and the function GetCurrentField() in order to know what is the current field selected in the group.

2013-01-03_11h50_49.png

2013-01-03_11h53_11.png

Amand Dupretz

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Create a drill down group and add the fields PRIMARY and SECONDARY to the group. Use the group as dimension in your pie chart. Use this expression if(GetCurrentField(G1)='PRIMARY', [Primary Percentage],[Secondary Percent]). Change G1 to the name of your group. See attached example.


talk is cheap, supply exceeds demand
Not applicable
Author

This is very much helpful Wassenaar.

Thank you for posting the sample.

Best Regards,

Sai Krishna