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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
vjnvinod
Impactful Individual
Impactful Individual

Week Number calculated coloumn

Hi,

i am using the below calculated coloumn to arrive at week number, but the output what its is giving me is based on Calendar year

 

Week Number = WEEKNUM('Date'[Date])

 

I need output based on Fiscal year(1st July 2019- 30 June 2020)

what will be my forumula to arrive that?

also i would need a Week coloumn based on my month

for example July, 1st week Monday to Friday, show me that as Wk1 and so on till Wk4 or Wk5 and again for july same as Wk1 to Wk5 etc and so on

 

1 ACCEPTED SOLUTION

@vjnvinod ,

Please find the attached file

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

6 REPLIES 6
v-eachen-msft
Community Support
Community Support

Hi @vjnvinod ,

 

If you want to create a custom fiscal year calendar, you could refer to this similar case:

https://community.powerbi.com/t5/Desktop/Custom-Fiscal-Year-Calendar/m-p/85228

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
amitchandak
Super User
Super User

Create a column start of year

 

start of year = startofyear([Date],"06/30")

Weekno = quotient(datediff([start of year],[Date],day),7) +1

OR

Weekno = quotient(datediff([start of year],[Date],day)+1,7) +1

 

You can move year start to week start like

Week Start date = 'Table'[start of year]-1*WEEKDAY('Table'[start of year],2)+1

 

https://docs.microsoft.com/en-us/dax/quotient-function-dax

 

 

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

@vjnvinod ,

Please find the attached file

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

@amitchandak 

 

Great stuff, it worked out:)

@vjnvinod , Thanks.

This one is a good example of 5-4-4 period.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.