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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

what should be my Return value? for DAX weeknum

 I am using the power bi desktop, i have a data set from the USA, where my order date starts with 2 July 2021, so I need to figure out the sale amount for the first week, the second week, and so on, so for week num I have used the DAX function but I am not able to figure out what should be return value should be? oh 2 july 2021 ,week starts on Thursday so should I go for return value 14 or is it something else I should know. pls help!!!Capture.PNG

4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team _ kalyj

Fowmy
Super User
Super User

@Anonymous 

If you need to add a column where your week number within the year starts from Thursday then

=WEEKNUM([Date],14)



 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

ok does it have anything to do with ISO calender , because whether ISO i.e 21 returns the week of the month greater than 5. since ISO has 5 weeks in a month.

i have used 21 as the return value for ISO but I still get week number 6 for certain entries 30 and 31 aug

@Anonymous 

Please refer to this article: https://dax.guide/weeknum/


Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.