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

Date features

months = DATESBETWEEN(Dim_Reported_Calendarday[DAY];Dim_Incident_Calendarday[First Day of This Month];[currentdate])

 

is this incorrect for finding days between first day of month and sysdate

can you similarly help for

1. first day of year and current date

2.first day of week and current date

1 ACCEPTED SOLUTION
Seward12533
Solution Sage
Solution Sage

Try DATEDIFF https://msdn.microsoft.com/en-us/query-bi/dax/datediff-function-dax

 

Current date is either NOW() date-time when workbook opened or TODAY() current date-time 

 

First day of Week - https://community.powerbi.com/t5/Desktop/Week-commencing-in-DAX/td-p/241304

 

First day of year =DATE(YEAR(TODAY(),1,1) 

First day of month = DATE(YEAR(TODAY),MONTH(TODAY(),1)

 

Days Since First Day of Month = TODAY()-DATE(YEAR(TODAY),MONTH(TODAY(),1)

-or-

Days Since First Day of the Month = DATEDIFF(DATE(YEAR(TODAY),MONTH(TODAY(),1),Today(),DAYS)

 

The second option is more general and can be used to count hours, days, weeks, quarters or whatever

View solution in original post

1 REPLY 1
Seward12533
Solution Sage
Solution Sage

Try DATEDIFF https://msdn.microsoft.com/en-us/query-bi/dax/datediff-function-dax

 

Current date is either NOW() date-time when workbook opened or TODAY() current date-time 

 

First day of Week - https://community.powerbi.com/t5/Desktop/Week-commencing-in-DAX/td-p/241304

 

First day of year =DATE(YEAR(TODAY(),1,1) 

First day of month = DATE(YEAR(TODAY),MONTH(TODAY(),1)

 

Days Since First Day of Month = TODAY()-DATE(YEAR(TODAY),MONTH(TODAY(),1)

-or-

Days Since First Day of the Month = DATEDIFF(DATE(YEAR(TODAY),MONTH(TODAY(),1),Today(),DAYS)

 

The second option is more general and can be used to count hours, days, weeks, quarters or whatever

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.

Top Solution Authors