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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

First of 1month for every month in DimDate Table

Hi Experts

 

How would i amend the following so it only gives the first date of the month over the time period.

 

Current DAX = Calendar(Date(2012,01,01),Date(2025,01,01) which give me everyday in the moneth

 

But i only want to show 

01/01/2012

01/02/2012 and so

1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

 

CalendarFDOM = 
VAR Years = SELECTCOLUMNS(GENERATESERIES(2012,2025,1),"Year",[Value])
VAR Months = SELECTCOLUMNS(GENERATESERIES(1,12,1),"Month",[Value])
VAR YearMonth = GENERATE(Years,Months)
VAR CFDOM_0 = ADDCOLUMNS(YearMonth,"Date",DATE([Year],[Month],1))
VAR CFDOM = SELECTCOLUMNS(CFDOM_0,"Date",[Date])
RETURN
CFDOM

 

OR

 

CalendarFD = 
VAR Cal = CALENDAR(DATE(2012,1,1),DATE(2025,12,1))
VAR FDOM = FILTER(Cal,DAY([Date])=1)
RETURN
FDOM

 

 

The first one was for fun.

View solution in original post

3 REPLIES 3
sayaliredij
Solution Sage
Solution Sage

You can use one of the following formula which works best for scenario

1. FirstDate 2= DATE(YEAR(MIN('Date'[Date])),MONTH(MIN('Date'[Date])),1)

2. Firstdate = MIN('Date'[Date])

 

Regards,

Sayali 

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

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

 

 

CalendarFDOM = 
VAR Years = SELECTCOLUMNS(GENERATESERIES(2012,2025,1),"Year",[Value])
VAR Months = SELECTCOLUMNS(GENERATESERIES(1,12,1),"Month",[Value])
VAR YearMonth = GENERATE(Years,Months)
VAR CFDOM_0 = ADDCOLUMNS(YearMonth,"Date",DATE([Year],[Month],1))
VAR CFDOM = SELECTCOLUMNS(CFDOM_0,"Date",[Date])
RETURN
CFDOM

 

OR

 

CalendarFD = 
VAR Cal = CALENDAR(DATE(2012,1,1),DATE(2025,12,1))
VAR FDOM = FILTER(Cal,DAY([Date])=1)
RETURN
FDOM

 

 

The first one was for fun.

Anonymous
Not applicable

many thanks experts

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors