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

View all the Fabric Data Days sessions on demand. View schedule

Reply
bernate
Helper III
Helper III

Power Query Custom Column nth Day of Month

Hello, I am trying to create a custom column in Power Query that would display the date of the 2nd Monday in the month based on DateTime.LocalNow.

 

I think it will use Date.Year = DateTime.LocalNow, Date.Month = DateTime.LocalNow, Date.DayOfWeek = 1, and Date.WeekOfMonth = 2 but I'm not sure how to piece it all together. 

1 ACCEPTED SOLUTION
ppm1
Solution Sage
Solution Sage

Here's one way to do it.

 

= List.Select (List.Dates(Date.From(Date.StartOfMonth(DateTime.LocalNow())), 14, #duration(1,0,0,0)), each Date.DayOfWeekName(_)= "Monday"){1}

 

Pat

Microsoft Employee

View solution in original post

2 REPLIES 2
Ahmedx
Super User
Super User

pls try this

Screen Capture #926.png

 

let
  Lists= List.Select(
    List.Dates(Date.From(Date.StartOfMonth(DateTime.LocalNow())), 14, #duration(1, 0, 0, 0)), 
    (x) => Date.DayOfWeek(x) = 0){1}
in
  Lists

 

ppm1
Solution Sage
Solution Sage

Here's one way to do it.

 

= List.Select (List.Dates(Date.From(Date.StartOfMonth(DateTime.LocalNow())), 14, #duration(1,0,0,0)), each Date.DayOfWeekName(_)= "Monday"){1}

 

Pat

Microsoft Employee

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