Forum Discussion
Victor_AguirreV
2 years agoRegular Visitor
Calculate with/without Filter() function and
Hey guys, So apparently I have been missing something very crucial about how the calculate function works. I am currently on the Datacamp course to get certified, and the question is asking to cr...
- 2 years ago
Hi,
It looks like you are trying to calculate a running total by date. Here's the approach i would use:
- Create a Calendar Table and a relationship (Many to One and Single) from the Recorded Date column to the Date column of the Calendar Table
- To your visual, drag Date from the Calendar Table
- Write this measure
RT = calculate(sum(Expenditures[Budgeted amout]),datesytd(Calendar[Date],"31/12"))
The RT will resent on Jan 1 of each year.
Anonymous
2 years agoNot applicable
Hi Victor_AguirreV,
I'd like to suggest you take a look at the following blog about row and filter context if it help you to learning with Dax knowledges.
Row Context and Filter Context in DAX - SQLBI
Regards,
Xiaoxin Sheng