i dont know why the function inside the first qta field result in a wrong value: the function report a value of 48 instead 56.
formula must be the result of the sum of all occurrence of tot_pagine_giornale (decreased of 40) inside the repeated section <data> (inside Data Connection "Fogliazione_GDV..."). all filtered by value <anno> and <mese> (main data source) (and valore_giorno != "lunedi" but the xml contains only saturday and sunday).
the formula that should be corrected:
somma(valutazione(data[valore_anno = current()/../../../../anno and valore_mese = current()/../../../../mese and valore_giorno != "lunedi"]; 'xdXDocument:GetDOM("Fogliazioni_GDV_con_mese_e_giorno")/tutto/date/data/dati_fogliazione/tot_pagine_giornale/valore - 40'))
could you please check the zip attacched ?
tvm, milko