Less than equal Month Data

Data:
LOAD DATE(DATE#(MonthYear,’YYYYMM’),’YYYYMM’) as MonthYear,Sales INLINE [
MonthYear,Sales
201701,5
201702,10
201703,15
201704,5
201705,10
201706,15
201707,5
201708,10
201709,15
201710,5
201711,10
201712,15
201801,5
201802,10
201803,15
201804,5
201805,10
201806,15
201807,5
201808,10
201809,15
];

Expression:

sum({<MonthYear={“<=$(=DATE(max(MonthYear),’YYYYMM’))”}>}Sales)

Capture1

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.