
Contributor
2021-11-04
11:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For each loop in expression
I have a dataset which has name, date and values.
I want the result as attached in the sample data excel.
The formula for result is for the first time it's 1*(value1+1) - for 2nd iteration it's --> result * (value2 +1) - for 3rd iteration it's --> result * (value3 + 1) and so on.
Thanks
1,386 Views
1 Solution
Accepted Solutions
2021-11-04
12:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this,
tab1:
LOAD *, Alt(Peek(Result),1)*(Values+1) As Result;
LOAD Name,
Date,
Values
FROM
[D:\HereDownloads\Sample data (2).xlsx]
(ooxml, embedded labels, table is Sheet1);
2 Replies
2021-11-04
12:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this,
tab1:
LOAD *, Alt(Peek(Result),1)*(Values+1) As Result;
LOAD Name,
Date,
Values
FROM
[D:\HereDownloads\Sample data (2).xlsx]
(ooxml, embedded labels, table is Sheet1);

Contributor
2021-11-04
01:41 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Saravanan, works like charm.
1,314 Views
