Forum Discussion
Anonymous
4 years agoNot applicable
Get Daily sum
I have a table with date and sales but when I applied summation to get daily sum it gives wrong results. I used: Daily Sales = SUM(sales[Sales]) My original table (sales): After using ...
- Anonymous4 years ago
Hi Anonymous ,
You could create a measure like below.
measure = calculate(sum(sales[sales]),filter(allselected('sales'),'sales'[date]=selectedvalue('date'[date])))
Best Regards,
Jay
PaulDBrown
4 years agoCommunity Champion
Are both the date fields in the Calendar table and sales table set to type date (not date/time)?
Is the relationship between the Calendar table and the sales table set to single direction and One-To-Many?
Anonymous
4 years agoNot applicable
Yes and yes. Still wrong results. Thanks!