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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
akuttler
Creator
Creator

Average Weekly for Specific Year

Hello,

I keep getting an error for the expression:

(Sum({<ITEMTYPE={'C'},Year={2017}>}Trans))/(Count(Distinct DATE({<Year={2017}>}WeekYear)))

Fields names ITEMTYPE= 'C' refers to Charges

Trans =Transactions


I am trying to get the Average Weekly Charges for 2017.

Thanks in advance.

1 Reply
OmarBenSalem
Partner - Champion II
Partner - Champion II

what is this DATE doing here?

Count(Distinct DATE({<Year={2017}>}WeekYear)