Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
NenadV
Creator II
Creator II

Why is avg() not working as expected for the Total?

ExpressionExpressionDataData

Labels (2)
1 Solution

Accepted Solutions
NenadV
Creator II
Creator II
Author

I know, I've fixed the issue in the data script by replacing zeroes with 0.5 for those who haven't scored anything.

Case closed. Thank you all.

View solution in original post

13 Replies
Or
MVP
MVP

Presumably, you've got some form of zero-value suppression turned on?

PrashantSangle

assuming 47.7% is not correct & 75.3 % is correct? can you explain how you got the 75.3%? if you are doing avg of rows then you have to use below option

PrashantSangle_0-1726052876153.png

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
NenadV
Creator II
Creator II
Author

no

NenadV
Creator II
Creator II
Author

I know. It result with the same total score

PrashantSangle

great. then what is the issue?

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Or
MVP
MVP

I'd suggest you double-check that. Zero suppression or another form of limitation (such as Top N) is by far the most common reason for what you're describing.

Kushal_Chawda

@NenadV  One possibility is that you have duplicate values for the combination of dimension you are using. Try aggregating values like below

= avg(aggr(avg(OS_Score), IBP_Cycle, Attendee))

NenadV
Creator II
Creator II
Author

it could be thesedata issues 2024-09-11_13-13-37.jpg

how to overcome it as there are no limitations?

NenadV
Creator II
Creator II
Author

ok, thx.

 

this formula doesn't work as it result with -