The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Dears,
Kindly note, I am a new user of Power BI. Learing through online videos.
I need help related to week number.
For my report, week starts on Saturday.
I was trying using "weeknum" function but I am unable to get desired result.
I need to display "Week Number" and accordingly week start and end dates on BI report.
Kindly advise.
Thanks & Regards.
Solved! Go to Solution.
Hi @mukeshved80 - Hope you have a date table created at your end, if Not,
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
Hi @mukeshved80
Thanks for the reply from @rajendraongole1 . Here I have another idea in mind, and I would like to share it for reference.
My sample:
Create several calculated columns as follow
WeekNum = WEEKNUM([Date], 16)
Week Start Date = [Date] - WEEKDAY([Date], 3) - 2
Week End Date = [Week Start Date] + 6
Output:
For a detailed description of the formulas used, see the following documentation:
WEEKNUM function (DAX) - DAX | Microsoft Learn
WEEKDAY function (DAX) - DAX | Microsoft Learn
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @mukeshved80
Thanks for the reply from @rajendraongole1 . Here I have another idea in mind, and I would like to share it for reference.
My sample:
Create several calculated columns as follow
WeekNum = WEEKNUM([Date], 16)
Week Start Date = [Date] - WEEKDAY([Date], 3) - 2
Week End Date = [Week Start Date] + 6
Output:
For a detailed description of the formulas used, see the following documentation:
WEEKNUM function (DAX) - DAX | Microsoft Learn
WEEKDAY function (DAX) - DAX | Microsoft Learn
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @mukeshved80 - Hope you have a date table created at your end, if Not,
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |