cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver I
Resolver I

Syntax for Custom Column to Show Current WeekDay Number

Hi,

 

Can someone please tell me how I can make a custom column in the Query Editor? Here is what I tried with error that WEEKDAY not recognized.

 

=WEEKDAY(TODAY(),2)

 

Thank you,

 

- Justin

1 ACCEPTED SOLUTION
Resolver I
Resolver I

I got it. Date.DayOfWeek(DateTime.LocalNow()) Thank you

View solution in original post

2 REPLIES 2
Advocate I
Advocate I

Hello Justair07,

 

Use WeekDay =Date.DayOfWeek(DateTime.LocalNow())

Resolver I
Resolver I

I got it. Date.DayOfWeek(DateTime.LocalNow()) Thank you

View solution in original post

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors