Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

ESTRAZIONE TRA DUE ANNI DIVERSI

Salve a tutti

il mio problema è che devo estrarre dei dati compresi tra il 01/10/2000 e il 30/04/2001

ho i tre campi 1 per l'ANNO  1 per il MESE e 1 per i GIORNI

ora se selezione ottobre 2000 fino a Aprile 2001 non mi restituisce la somma dei 7 mesi ma bensì la somma dei 10 mesi ( gennaio + febbraio + marzo + aprile + ottobre +novembre  + dicembre 2000   +  ottobre + novembre  + dicembre 2001 )

come posso fare a fare la somma solo dei 7 mesi

grazie a tutti

1 Reply
caio_caminoski
Creator
Creator

Hey Luca!

If I could see how is your script I could help you better, but I guess that in your table you can add a field using the function 'makedate'. For example:

Load

     ANNO,

     MESE,

     GIORNI

     Makedate( ANNO, MESE) as DATA

From ....


Then you can use the field 'DATA' to filter the months you wish!


ps: the field MESE must contain a numerical value. otherwise if it conteins text such as 'gennaio', 'febbraio', ... you should try:

Load

     ANNO,

     MESE,

     GIORNI

     Makedate( ANNO, Month(date#(MESE,'MMMM'))) as DATA

From ....



I hope it helps!!


Ciao!!