Hi all,
I want to ask user to insert number of months for analysis. This value will be used in equation to select the last "insert months" of rows and then subset.
I prepared following part at the beginning, but this leads to an error.
Names Default To Here( 1 );
nw = New Window("", <<MODAL>= (:Date Time[N Rows (Current Data Table())]-(60*60*24*30*time)));
dt1 << Subset( Output Table( "Subset of file" ), Selected Rows(1), Selected columns only( 0 ) );</MODAL>and the error is:

Already thanks for you help..
Thank you very much. Worked perfectly 
Because the window is closed after pressing OK you will loose the reference to Number Edit Box. Because you are using << Return Result you can use this
time = nw["nom"];