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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

 

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@vjnvinod ,

Please find the attached file

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

 

Great stuff, it worked out:)

@vjnvinod , Thanks.

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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