Forum Discussion
Anonymous
4 years agoNot applicable
sum if date <
hi, I have a table like this. I need a measure to sum STOCK if date is<2022-03-10 (year= 2022, month= 03, day=10) I tried like this: cantidad stock viejo = CALCULATE(SUM(curva_integrada[c...
- 4 years ago
Hi, Anonymous
function DATEVALUE should do the trick.CALCULATE(SUM(curva_integrada[cantidad_stock]);curva_integrada[fecha_ultimo_ingreso] < DATEVALUE("10/03/2021"))
vojtechsima
4 years agoSuper User
Hi, Anonymous
function DATEVALUE should do the trick.
CALCULATE(SUM(curva_integrada[cantidad_stock]);curva_integrada[fecha_ultimo_ingreso] < DATEVALUE("10/03/2021"))- Anonymous4 years agoNot applicable
thanks vojtechsima , that was very helpful!!!!
- vojtechsima4 years agoSuper User
Anonymous
Happy to help, also there's another option and that is to use function DATE, where you would construct the date like this:DATE(<year>, <month>, <day>)