Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help with box plot and using variables

Any help is appreciated.

I'm trying to create a boxplot that compares a selected company with other companies performance in their same industry segment.

I have created two variables for ease of use, vSO and vSOLines.

vSO value is =count(DISTINCT(so_id)) and vSOLines value is =count(so_id)

For the top box plot I have Fractile({<Customer = , Segment = p(Segment)>}vSOLinesequals/vSOequals,.75) since I want to graph the Lines per SO

I continue this for middle .5, and bottom .25.

However my plot looks like this, all that shows up is the lines.?

image.png

Any ideas?

9 Replies
sunny_talwar

What is vSOLinesequals and vSOequals?

Not applicable
Author

SOLines is the number of lines in an order, SO is the number of orders.

the equals is the same variable, I just shortened it for convenience.

sunny_talwar

So they are expression? If that's true then try using them with Aggr() function

Not applicable
Author

Aggr? In the Fractile?

This gives me an error in expression

Fractile(Aggr({<Customer = , Segment = p(Segment)>}vSOLinesequals/vSOequals),.75)

sunny_talwar

My friend.... this is not how this would work... ... Would it be possible for you to share a sample or some sample data to help you better?

Not applicable
Author

Sadly, I cannot share this data.

However, going off of this post,

Fractile of an expression

I tried to duplicate it but I'm receiving an error that my chart says no data to display.

This is what I have now

Fractile(Aggr(Count([so_id])/count(DISTINCT[so_id]),Segment),.75)

Count(so_id) is the same as counting the lines, and with distinct, it is counting the orders.

Any ideas?

sunny_talwar

I am not asking to share this data... I am asking to mock up data so that we can see what you have.

How to get answers to your post?

Preparing examples for Upload - Reduction and Data Scrambling

Uploading a Sample

Not applicable
Author

Customer

Acme

Bean
Crimson
Deloitte
Segment
Lumber
Roofing

Stone

so_id

1

2
3
4
5

These are the main tables. For each so_id, such as so_id 1, it can appear many times in the data. So I use a count of the so_id, so if 1 appears 13 times, then we call that the # of lines in so_id 1.

I want to view Bean, which is in the Lumber industry, and see it's lines per so_id compared to other companies in the same Segment.

I need this in a box plot view, and am currently struggling.

sunny_talwar

I don't really understand... I am sure someone else can help you better.

Best,

Sunny