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

YTD Sales

Hi all,

I would like to to find out the YTD Sales and show by Month

But I do not know what expression should I use.

As I have tried using different expression but failed.

YearMonthMonthly SalesYTD Sales
201201200200
201202100300
201203300600
2012044001000
2012052001200

I need help,

Thanks

1 Solution

Accepted Solutions
Sokkorn
Master
Master

Hi,

1. Load data

[Data]:

LOAD * INLINE [

Years,    Month,    Monthly Sales

2012,    01,    200

2012,    02,    100

2012,    03,    300

2012,    04,    400

2012,    05,    200];

2. Create Straight Table

     a. Years and Month as Dimension

     b. Two Expression

          i. SUM([Monthly Sales])

          ii. RangeSum(Above(Total Sum([Monthly Sales]),0,RowNo()))

See the sample attached file.

Regards,

Sokkorn

View solution in original post

2 Replies
Sokkorn
Master
Master

Hi,

1. Load data

[Data]:

LOAD * INLINE [

Years,    Month,    Monthly Sales

2012,    01,    200

2012,    02,    100

2012,    03,    300

2012,    04,    400

2012,    05,    200];

2. Create Straight Table

     a. Years and Month as Dimension

     b. Two Expression

          i. SUM([Monthly Sales])

          ii. RangeSum(Above(Total Sum([Monthly Sales]),0,RowNo()))

See the sample attached file.

Regards,

Sokkorn

Not applicable
Author

Thanks so much:)