Quantcast
Viewing all articles
Browse latest Browse all 217217

Execute user function per row or group

Hi,

 

I have a table with dates and I would like to add a new date row for each month since the first create date until today for each issueid.

I have created a user function which will genereate a new table with all the necesarry new rows but right now it is only executed for the first row in the original table (issueid=225389)

 

Original tabel:

Image may be NSFW.
Clik here to view.
2016-11-13 18_41_37-.png

 

M-code:

Image may be NSFW.
Clik here to view.
2016-11-13 18_39_09-1.png

 

User function m-code:

Image may be NSFW.
Clik here to view.
2016-11-13 18_40_10-.png

 

Result is fine but only for one issue id, I need the same for all the issue ids.

 

Image may be NSFW.
Clik here to view.
2016-11-13 18_40_40-.png

 

Then I am going to append the two tables.

 

I cannot figure out how to execute the user function for each row where issueid different from next issueid or GroupBy issueid.

 

Any help is appriciated.


Viewing all articles
Browse latest Browse all 217217

Trending Articles