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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
btrompetter
Contributor III
Contributor III

How to calculate the avg weekly sales in a Textbox

Hello,

I want to show the average weekly sales in a textbox.

I think about a formular like this but it didn't work:


sum(
aggr(
{ $<
Year = {$(=year(today()))}
>
}
sum(Sales), Week) / count(STORE_NO)
) / max(total Week)

Do you have a hint for me?

regards

Bastian Trompetter

1 Solution

Accepted Solutions
Not applicable

I would put the set analysis (the whole {}-thing) into the second sum between "(" and "sales"...

View solution in original post

1 Reply
Not applicable

I would put the set analysis (the whole {}-thing) into the second sum between "(" and "sales"...