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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Custom week number

I am new to PowerBi and trying to create the same week numbering that I have in excel for "fiscal week num".

 

My formula in excel is (based off of the date column): =ISOWEEKNUM(A2049-301)

 

is there a way for me to use this same logic in powerbi? if not, how would I go about accomplishing the same outcome?

 

thanks in advance

 

 

image.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

 

Looking at it Power BI doesn't seem to have ISOWeekNum however looking at your excel calculation it is just that days WeekNum minus 301 days.

 

Using that I created an Excel table like yours and imported it. I then created a column with

Calc Fiscal Week Num = WEEKNUM('Table1'[Date].[Date]-301,2)
 
and created a check column to see if the Calc Fiscal column matched the actual Fiscal Column but there was a difference when the year changed. I think the best way would be to import the table and connect it to your data.
Screenshot_3.png
Screenshot_2.png
 
I don't think there is any other way around this.
 
Why do you need a calculated figure rather than an imported reference table?

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

you could import the same table you use in your excel document into Power Bi and use the same data, would that work for you? if you need help with this just let me know.

 

if this solved the issue don't forget to mark it as the solution.

Anonymous
Not applicable

true, and thats a good plan B but looking for more of an automated calculation or a formula similiar to the isoweek function in excel.

 

 

 

 

Anonymous
Not applicable

Hi @Anonymous 

 

Looking at it Power BI doesn't seem to have ISOWeekNum however looking at your excel calculation it is just that days WeekNum minus 301 days.

 

Using that I created an Excel table like yours and imported it. I then created a column with

Calc Fiscal Week Num = WEEKNUM('Table1'[Date].[Date]-301,2)
 
and created a check column to see if the Calc Fiscal column matched the actual Fiscal Column but there was a difference when the year changed. I think the best way would be to import the table and connect it to your data.
Screenshot_3.png
Screenshot_2.png
 
I don't think there is any other way around this.
 
Why do you need a calculated figure rather than an imported reference table?
Anonymous
Not applicable

that works perfect.

 

thank you again for all your help.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.