Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set analysis formula

can you use set analysis to look at only certain parts of a field?

For example, I have the calendar dates as 201438, 201439, etc... for forecasts but I also want to show sales.

what expression can I use to say only look at the sales for week 38 from year 2013...

21 Replies
Not applicable
Author

Can you post an excel output how it should show please?

Thanks

Suraj

Not applicable
Author

Check the first tab in the excel spreadsheet called 'final layout'

Not applicable
Author

Check this QVW. If this is what you are looking for.

Thank you

Suraj

Not applicable
Author

This is ok... Is there any other way to change the set analysis in the expression so that the year is not hardcoded?

Because in 2015, they would want to see 2014 and 2013... How could you change the set analysis so that it looks at the max year in the forecast and selects a year?

So if you had something like this, it would show as below

WeekBrandProductRetailerForecastSales 1 yr agosales 2 yr ago
201451LowBLAX100150200
201452LowBLAX200250300
201501LowBLAX300350400
201502LowBLAX400450450

the ones in bold would be from year 2013 and 2012.. while the underlined ones would be from 2014 and 2013...

Not applicable
Author

Check this.

Thanks

Suraj

lucianosv
Specialist
Specialist

You can do a LEFT JOIN using Table Forecast with itself in the script by keyword:

(Week - 100) the Week, Product, Brand and Retailer

Not applicable
Author

Suraj,

What if my sales dates were in the Monday date format... for example... 8/5/2013, 8/12/2013, 8/6/2012, 8/13/2012..etc but my forecast was still in format yyyyww (i.e 201437, 201428, etc)

How would this change my application?

Not applicable
Author

I would convert dates to their respective week. Like (Year(SalesDate) & week(SalesDate)).

Thanks

Suraj

Not applicable
Author

Luciano,

Would (Week-200) the Week, Product Brand and Retailer give me Sales from 2 years ago? or would I need to do something differently?

Not applicable
Author

(Week - 100) the Week, Product, Brand and Retailer


the top works for when you need it for a year before....what can I do to make get the actual sales for 2 years before?


If I do (Week-200), it's giving me the same results as the (week-100)


Is there some other set analysis that I could use?