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
Samarth_18
4 years agoCommunity Champion
Hi Anonymous ,
Are you using date and sales from same table or different?
Thanks,
Samarth
- Anonymous4 years agoNot applicable
HI! From different tables. Date from calander table and sales from sales table. I joined them based on the date.
- Anonymous4 years agoNot applicable
I summarized using 'sum' in the table view insdead of calculated measure, and still getting the same results, which is wrong. Thanks!
- PaulDBrown4 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?