Forum Discussion
Alex_Hasan
Helper II
4 years agoDax
Hello good people, I was given the assignment below to solve this. As a newcomer in PBI, I find it confusing. I tried hard and solved the problem, but it seems I actually messed up with the solution....
Alex_Hasan
Helper II
4 years agoHi amitchandak , what would be the dax for total sales here? Because I need to calculate it properly.
Is it SUM(Sales[Net Sales])?
v-chenwuz-msft
Community Support
4 years agoHi Alex_Hasan ,
Did you want sum all the sales until the selected date?
Maybe you can try this measure to do that.
Measure = CALCULATE ( [Total sales], FILTER ( ALLSELECTED ( Dim_Date ), [Date] <= MAX ( 'Dim_Date'[Date] ) ) )
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.