
Anonymous
Not applicable
2016-03-03
07:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use while and where in loading script
I have the follwing script
AsOfMonth:
load 'Current' as Type,
Month as Month_AsOf,
Month as Month
Resident SalesData;
Concatenate (AsOfMonth)
load 'Rolling 3' as Type,
Month as Month_AsOf,
Month + 1 - IterNo() as Month
Resident SalesData
where promo =1
while IterNo() <= 3//here my problem
;
How to correct it ?
6,099 Views
1 Solution
Accepted Solutions


MVP
2016-03-03
07:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 Replies


MVP
2016-03-03
07:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try like this
while (IterNo() <= 3 and promo =1) ;


MVP
2016-03-03
07:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you can either use a WHERE or a WHILE clause in the same LOAD statement.
If you want to use both clauses, you would need separate / preceding LOAD statements.
4,913 Views
