Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Execute user function per row or group

$
0
0

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:

2016-11-13 18_41_37-.png

 

M-code:

2016-11-13 18_39_09-1.png

 

User function m-code:

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.

 

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 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>