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

Need help creating a week begins with monday

Hi! I badly need your help. I need help fixing my report table that need a week sequence that begins with monday. I alread try a lot of ways how to do it but still there an error in the output. I think the problem is between the data I used and week sequence number.

PBInnmn.PNGPBInnmn2.PNG

I have screenshot here. Please, I hope you guys can help me. Thank you!

 

 

4 REPLIES 4
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

First make sure your date column has the correct data type, and then you can use the "WEEKDAY" function to return the number of the week.

 

weekdayNum = WEEKDAY('ReportTable'[Updated],2)

 

You can also use the "SWITCH" function to create a calculated column of weekday names.

 

weekdayName = SWITCH(ReportTable[weekdayNum], 1, "Mon", 2, "Tue", 3, "Wed", 4, "Thu"  
               , 5, "Fri", 6, "Sat", 7, "Sun" , "Unknown number" ) 

 

 

 

Best Regards,

Liang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

TomMartens
Super User
Super User

Hey @Anonymous ,

 

I'm not sure if I really understand what you are looking for, but maybe my answer in this post will help: https://community.powerbi.com/t5/Desktop/Week-commencing-in-DAX/m-p/241304#M107084

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

Hi Tom! I'm sorry, I don't really explain the point about the problem I'm facing. By the way I've tried the solution you raised but its just that it's not what I'm looking for but thank you for the effort. I'll raise another problem in detail by detail. Thank you! 🙂 

Hi @Anonymous ,
 
It's glad that you have solved your problem.
Please accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.