Forum Discussion
Anonymous
6 years agoNot applicable
Sum between two dates
Hi, In one of my reports I use TOTALMTD to give the monthly values of that month. However I need a daxformula that summarize a value between two dates (will be a static number throughout the repo...
- 6 years ago
Hi @Oscar1133 ,
Here are 2 measures that can satisfy your need:
Test bus salesmen=CALCULATE(SUM(ddd[RT Bus Salesmen]),DATESBETWEEN('Calendar table'[Date],DATE(2019,02,01),DATE(2019,02,28)))O
Test bus salesmen=CALCULATE(SUM(ddd[RT Bus Salesmen]),FILTER(ALLSELECTED('Calendar table'),'Calendar table'[Date]>=DATE(2019,02,01) && 'Calendar table'[Date]<=DATE(2019,02,28)))Saludos
KellyDid I answer your question? Mark my position as a solution!
az38
6 years agoCommunity Champion
hi Anonymous
try without filter and use more appropriate date statement, like
= CALCULATE( SUM(ddd[RT Bus Salesmen]); DATESBETWEEN(ddd[Date];DATE(2019;2;1); DATE(2019;2;28)) )