Forum Discussion
gunjan80
6 years agoMicrosoft Employee
Filter using last date not working
I have a Sales table. I am trying to get the sale amount as per the last sale quarter. I've tried, using 'LastDate' function. It works independantly but it does not work with the filter combinatio...
- 6 years ago
I fixed this. Here is the DAX.
Last Sale Amount2 = CALCULATE(sum(Table1[Sales]), All('Date'[Quarter]), CALCULATETABLE(LASTDATE(Table1[Date]),ALLEXCEPT(Table1, 'Table1'[Customer Name]) ))
v-zhenbw-msft
6 years agoCommunity Support
Hi gunjan80 ,
Glad you found the solution.
Please mark your reply as an answer, let more people find it more quickly, thanks.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
gunjan80
6 years agoMicrosoft Employee
I've marked it as a solution. Thankyou for helping me on this.