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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.