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

average over week

Hi experts

This formula have an error in expression, how should it be corrected? Thanks!

Avg( {$<[Product Unit]={'Bath rooms'}, Week, [Calendar Day]>} total <Week> [Amount])

Labels (4)
2 Replies
MendyS
Partner - Creator III
Partner - Creator III

@TomBond77 

what did you try to do?
if you want avg of sum for a specific week so use that - 

Avg ({$< [Product Unit] = 'Bath rooms'}, Week=[SomeWeek]>} [Amount])

if you want to see the avg of Amount by weeks so use that - 

aggr( Avg ({$< [Product Unit] = 'Bath rooms'}>} [Amount]), week)

hope that helps you,
regards

 
vinieme12
Champion III
Champion III

the expression is fine, 

Question is do all fields in this expression EXISTS? check for misspelled field names

Can you post a full screenshot of the expression editor?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.