Forum Discussion
Digger
Post Patron
4 years agoSum by category until date
I have i table How to write measure to sum by Code until date Not working measures: selpre = CALCULATE(SUM(Base[Percent]) ) selpre = CALCULATE(SUM(Base[Percent]), DATESYTD(Ba...
amitchandak
Super User
4 years agoDigger , You need to have a date table and you need to join it with the date of your table. Then use year and month from date table
and this formula should work
selpre = CALCULATE(SUM(Base[Percent]), DATESYTD(Date[Date]))
Digger
Post Patron
4 years ago