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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
cliff_clayman
Creator II
Creator II

Creating a Pie Chart from Straight Table

I would like to create a Pie Chart from some data I prepared in a Straight Table.  However, I would only like to chart a portion of the data.

POs.JPG

I only want to chart the ratio between the values on the PO row.  How can I limit the data in this straight table and turn it into a Pie Chart?  I had to create a calculated Dimension for the Po vs No PO field.

=If(Len([PO]) = 0,'No PO','PO')

23 Replies
cliff_clayman
Creator II
Creator II
Author

=If(Len([PO]) = 0,'No PO','PO')


That is how.  If the PO field is blank or essentially = 0, then there is No PO.

Anil_Babu_Samineni

Can you share sample application as Talwar asked

QlikCommunity Tip: How to get answers to your post?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

May be a set analysis like this:

{<[PO] = {"=Len(Trim(PO)) > 0"}>}

cliff_clayman
Creator II
Creator II
Author

Where do I put this?

sunny_talwar

In your expression so that you only get the PO line.

cliff_clayman
Creator II
Creator II
Author

Something is wrong with the syntax...Garbage after expression: '='

sunny_talwar

What is your expression?

cliff_clayman
Creator II
Creator II
Author

I just used the Set Analysis you provided.  Is it to be added to an existing expression?  Here is my expression for PO:

=Count(DISTINCT [PO])

Anil_Babu_Samineni

Might be sunny suggestion is this?

Count( {<[PO] = {"=Len(Trim(PO)) > 0"}>} <Target-Value>)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

Anil -

This -> =Count(DISTINCT {<[PO] = {"=Len(Trim(PO)) > 0"}>} [PO])