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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Calculating Sales from a certain day of the month

I'm trying to calculate the total sales from the 1st  of the month (1st of january, 1st of february etc). Ignoring all other sales from the other days in the month.

* 1/1/2020

* 1/2/2020

* 1/3/2020

 

Imagine the measure I currently use is [Total Sales] Which is a SUM(sales). 

My date table is in m/d/yyyy/ hh:mm:ss: but ideally the time would be ignored

 

JustinS1916_0-1612347660201.png

I'd then like to adjust the [Total Sales] so it only factors in the sales made on the 1st of each month (Every month, every year)

 

Any help would be appreciated, thanks a lot!

 

Regards,

 

Justin

 

 

 

1 REPLY 1
NandanHegde
Super User
Super User

Hey,
You can create a Flag column indictaing that it is 1st day of the month.
Then in measure : Calculate (sum(sales), FIlter(Flagcolumn=1))




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.