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...
Digger
Post Patron
4 years agoamitchandak no one measure is not working!!!
amitchandak
Super User
4 years agoDigger ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
- Digger4 years ago
Post Patron
amitchandak everything shared in my post
- amitchandak4 years ago
Super User
Digger , 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]))
- Digger4 years ago
Post Patron