Forum Discussion
Rashid Mohammed
Aug 23, 2016Brass Contributor
Is there any replacement for WEEKNUM in Power BI
Is there any way to find the Week Number from a Date field using a custom column in POWER BI desktop app
- Aug 24, 2016
These are different tools, with Query you use M language and with model DAX. Check query function here https://msdn.microsoft.com/en-us/library/mt253480.aspx .
SergeiBaklan
Aug 23, 2016Diamond Contributor
Rashid, didn't catch, replacement of what? WEEKNUM in DAX works fine, or you mean Power Query? Here is also some function.
Rashid Mohammed
Aug 24, 2016Brass Contributor
When I Go Edit Query Mode add a custom column and add the formula =WEEKNUM(Date,1) it gives me an error but It all works fine If I add the column directly from Report page.
- SergeiBaklanAug 24, 2016Diamond Contributor
These are different tools, with Query you use M language and with model DAX. Check query function here https://msdn.microsoft.com/en-us/library/mt253480.aspx .