Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Reply
Anonymous
Not 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):

Gummy_0-1650183535933.png

After using the formula, I get summation as below (which is wrong):

Gummy_1-1650183583955.png

 

Please help!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

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
Community Champion
Community Champion

Can you provide sample data?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

I am not sure how but, re-doing the model gave the correct solution. Thanks all

Samarth_18
Community Champion
Community Champion

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

Anonymous
Not applicable

HI! From different tables. Date from calander table and sales from sales table. I joined them based on the date.

Anonymous
Not applicable

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?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Yes and yes. Still wrong results. Thanks!

Anonymous
Not applicable

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.