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 function's not working?

Hi,

Is there any known issue about the avg function?

I have a field that count days per code. The think is that if in a pivot table I have this expression:

Avg(distinct Days) and has as Dimensions Name, store, code and Days.

The pivot table displays the fields properly, the avg is not correct for a few of them and I don't know why.

I have tried to do it manually

Sum (distinct days) / Count (distinct Codes)

But the results are not well neither.

Any idea?

3 Replies
vishsaggi
Champion III
Champion III

Can you share a sample to work on?

Anonymous
Not applicable
Author

I am sorry, I cannot do that

vishsaggi
Champion III
Champion III

You can scramble your data and upload like mentioned here:

Preparing examples for Upload - Reduction and Data Scrambling