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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Average

Hi Folks i have a table setup like below:

Capture.JPG

but my average column doesnt appear to be working. if i create a stats box and select the area LL it gives me the correct average but if i have all my areas selected it doesnt give me my average is there a way of showing the clicked average on the table with out selecting the actual area i hope this makes sense?

thanks all

Jase

1 Solution

Accepted Solutions
prieper
Master II
Master II

You may build a formula with nested IFs, like

IF(Weight < 100, 'Low', IF(Weight < 250, 'Light', IF(Weight <500, 'Medium', IF(Weight < 1000, 'Heavy', 'Super Heavy'))))

I would prefer to have it in the script, same formula:

IF(Weight < 100, 'Low', IF(Weight < 250, 'Light', IF(Weight <500, 'Medium', IF(Weight < 1000, 'Heavy', 'Super Heavy')))) AS WeightCategory

HTH
Peter

View solution in original post

4 Replies
prieper
Master II
Master II

It would be clearer, if you could post an example to see the fields/datastructure in your application:

You may replace the formula behind "Average Reve...." by =COLUMN(3)/COLUMN(1)

which should divide the Revenue by the number of orders.

HTH
Peter

Not applicable
Author

Hi Peter,

i was just been thick i think i was able to do it just by adding a column and selecting Avg (Revenue)

i do have a more complex problem though

i want to work out this:

i have the number of orders but i want to put something in place that will show me all Orders upto a Certain Weight

so Orders upto weight 100 - 250

251- 500

501 - 1000

1001+

not sure how i can put this into a table though if anyone has any ideas?

prieper
Master II
Master II

You may build a formula with nested IFs, like

IF(Weight < 100, 'Low', IF(Weight < 250, 'Light', IF(Weight <500, 'Medium', IF(Weight < 1000, 'Heavy', 'Super Heavy'))))

I would prefer to have it in the script, same formula:

IF(Weight < 100, 'Low', IF(Weight < 250, 'Light', IF(Weight <500, 'Medium', IF(Weight < 1000, 'Heavy', 'Super Heavy')))) AS WeightCategory

HTH
Peter

Not applicable
Author

that worked a treat! cheers