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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RyPCy
New Member

Total Sales by Month Not Calculating Properly after First 2 Months...

Hi Everyone! 

I've recently begun building quite a few dashboards in Power BI (More familiar with Tableau) and I have a unique issue that I can't seem to understand. Hoping the collective mind can help!

 

Goal: Show the total sales for each month in 2023 thus far. i.e. Jan = $34000, Feb =$56999, March = $98777 etc...

Format/Function: Using the DatesBetween DAX Function to sum the totals for each month like so.. 

****Feb Balance = CALCULATE(SUM('Table_1[Sales]),
DATESBETWEEN('Table_1'[Date], DATE(2023,02, 01), DATE(2023,02,28)))*****
 
Problem: When I use this formula on March I get a wildly high number... and the same goes for any month following that number... However when I pull the data in SQL it's accurate and the SQL query is connected properly to this Power BI Dashboard. 
 
Can anyone help with this issue?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @RyPCy ,

It sounds like there may be an issue with the data or the DAX formula being used. One possible solution is to check the data for any outliers or errors that may be causing the issue. Additionally, you may want to try using a different DAX formula to calculate the total sales for each month, such as the TOTALYTD function.

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @RyPCy ,

It sounds like there may be an issue with the data or the DAX formula being used. One possible solution is to check the data for any outliers or errors that may be causing the issue. Additionally, you may want to try using a different DAX formula to calculate the total sales for each month, such as the TOTALYTD function.

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Thank you for replying! 

It was an error in how the data was being pulled in. 

I was able to troubleshoot and fix it 🙂 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.