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! :)

some random thoughts

follow me on twitter



SQL Server  >  Power Pivot



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........