We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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 the formula, I get summation as below (which is wrong):
Please help!
Solved! Go to Solution.
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
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
Can you provide sample data?
Proud to be a Super User!
Paul on Linkedin.
I am not sure how but, re-doing the model gave the correct solution. Thanks all
Hi @Anonymous ,
Are you using date and sales from same table or different?
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
HI! From different tables. Date from calander table and sales from sales table. I joined them based on the date.
I summarized using 'sum' in the table view insdead of calculated measure, and still getting the same results, which is wrong. Thanks!
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?
Proud to be a Super User!
Paul on Linkedin.
Yes and yes. Still wrong results. Thanks!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 32 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 66 | |
| 40 | |
| 34 | |
| 25 |