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

min week in month

Hello!

I have pivot table like this

StoreMonthWeekSalesSum Sales
Store11155
Store125712
Store1261123
Store2271010
Store228616
Store239925

I need Sum Sales column to show growing Sales during the store

Labels (1)
5 Replies
sunny_talwar

I need Sum Sales column to show growing Sales during the store??? Not sure what you mean? Can you please clarify.

Best,

Sunny

Not applicable
Author

Sorry If I'm not clear enough . Look for Store1, first week sales = 5, 5 week sales = 5(prev week) + 7(current week) = 13, 6 week sales = 13(prev week) + 11(current week) and so on

Anonymous
Not applicable
Author

Try this,

Data:

LOAD * INLINE [

    STORE, MONTH, WEEK, SALES

    Store1, 1, 1, 5

    Store1, 2, 5, 7

    Store1, 2, 6, 11

    Store2, 2, 7, 10

    Store2, 2, 8, 6

    Store2, 3, 9, 9

];

Data2:

NoConcatenate

Load

STORE,

MONTH,

WEEK,

SALES,

if(STORE=peek(STORE),SALES+Peek(CUMU_SALES),SALES) as CUMU_SALES

resident  Data

order by STORE asc, MONTH asc, WEEK asc

;

drop table Data;

Not applicable
Author

it should be done in pivot table, according to different filters

ramoncova06
Partner - Specialist III
Partner - Specialist III

use range sum with above


rangesum(above(sum(Sales), 0 , RowNo())))