Forum Discussion
rhaberkorn4
2 years agoNew Member
Filer Day.IsInCurrentWeek to start on Monday
Hello, I am trying to crete a simple spread sheet using and ODBC connection and Power querry. I data dump the ODBC connection into excel and then use that table in Power querry. There is a D...
- 2 years ago
Use this for your last step
= Table.SelectRows(#"Reordered Columns3", each Date.IsInCurrentWeek(Date.AddDays([Day of Week],-1)))
Vijay_A_Verma
2 years agoMost Valuable Professional
If you want to use Monday as the start day for Date.IsInCurrentWeek, use
Date.IsInCurrentWeek(Date.AddDays([Date],-1))
Hence, you will have to insert following step where #"Changed Type" is previous step
= Table.SelectRows(#"Changed Type", each Date.IsInCurrentWeek(Date.AddDays([Date],-1)))
rhaberkorn4
2 years agoNew Member
Thank you,
I tried to enter the code you porovided into the advanced editor and it is giving me error. I have attached the current advianced editor code.
- Vijay_A_Verma2 years agoMost Valuable Professional
I can't see Date.IsInCurrentWeek anywhere in your code? If you could highlight, that would be great.
- rhaberkorn42 years agoNew Member
Thank you. At the very bottom. Let me know if this is not what you are looking for
- Vijay_A_Verma2 years agoMost Valuable Professional
Use this for your last step
= Table.SelectRows(#"Reordered Columns3", each Date.IsInCurrentWeek(Date.AddDays([Day of Week],-1)))