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: 
Anonymous
Not applicable

Average of values only if more than 5 answers

Hi there,

I have a table with 10 columns. I'm trying to calculate the average of 5 highest and lowest columns, but i only want to calculate for the columns that have more than 5 answers. I've transformed this table into a crosstable that has (ID,column,value) .

I'm creating a bar chart where i limit the dimension with a fixed value of 5, then i add a if(count(ID)>5, avg(value)). What happens is that the bar chart only shows items where the count is > 5. So, for the 5 lowest values, if one of the columns has a count below 5, that item does not appear in the chart, and the chart only shows 4 items.

What i need is for the chart to "move on" to the next item, and always show 5 items.


Thanks.

Labels (1)
8 Replies
MK_QSL
MVP
MVP

can you provide few lines of dummy data please?

Anonymous
Not applicable
Author

sunny_talwar

Downloading the csv file shows no data. May be attach the file here:

Uploading a Sample

MK_QSL
MVP
MVP

some error in csv file.

Anonymous
Not applicable
Author

Here goes.

MK_QSL
MVP
MVP

again error..

sunny_talwar

This is what I am getting

Capture.PNG

Anonymous
Not applicable
Author

Sorry, not sure what's wrong...