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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need to get Sum per Dimension week

hello,

Can anyone help me to get the total sales per week(dimension) from the table below;

WeekNumberChannelSalesColumn that should return total of the week(Expected Results)
1abc020
1asd2030
2asd3030
3sdgfds40220
3sdfsd50220
3bddvbv60220
3lokpko70220

The idea is to have the repartition of the sales per week and per Channel. I used Aggr as shown below but the results are as follows:

Formula: sum(aggr(sum(sales),WeekNumber))

WeekNumberChannelSalesColumn that should return total of the week(Expected Result)Used Aggr from QV
1abc03030
1asd20300
2asd303030
3sdgfds40220220
3sdfsd502200
3bddvbv602200
3lokpko702200

Thanks in advance,

Selen

Labels (1)
4 Replies
jerem1234
Specialist II
Specialist II

Try:

sum(total <WeekNumber> sales)

Hope this helps!

sunilkumarqv
Specialist II
Specialist II

try like these

sum(total sales)/Weeknumber

or

div(aggr(sum(total sales)),Weeknumber)

its_anandrjs
Champion III
Champion III

Hi,

use this expression

Aggr(sum(DISTINCT Sales),WeekNumber)

Hope this helps

Thanks & Regards

maxgro
MVP
MVP

did you mean week or week and channel?

sum(total <WeekNumber> sales)

sum(total <WeekNumber, Channel> sales)