dateadd() per week
hi
is there way use dateadd() equivalent function calculate data previous weeks?
thanks!
think got issue (though still not sure on calculation should havent explained end result should be).
the issue why tam 4 semanas comes blank because measure, , min(new date column) first date, , might not have value it. either need make calculated column (and guess can remove min() , put date) or use iterative function sumx in measure.
=sumx(fechas, calculate([qty facturada];datesbetween(fechas[pk_fecha];today();min(fechas[semanaactualmenos4calc]))))
please note dont know how calculation should be, , unless tell me of sample data, show how calculation works, , show end results also, cant give better answer.
cheers,
jason | www.sqljason.com
p.s. : please click 'mark answer' button if post solves problem! :)

SQL Server > Power Pivot
Comments
Post a Comment