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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Add weeknr to date hierarchy

Hi,

 

I would like to add weeknumbers to the date hierarchy within my datetable in Power BI.

Now automatically the year, quarter, month and day is in the hierarchy, but I would like to add week to it.

How do I need to do that?

 

jdevalk_1-1642693522772.png

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

Week is not automatically in the date hierarchy, but you can manually create a new hierarchy.

Right click the Year column, select Create hierarchy, you can rename the hiererchy as needed, then right click other columns(Qtr, Month, Week, Day), select Add to heirarchy >New Hierarchy.

vkalyjmsft_0-1643090869472.png

vkalyjmsft_1-1643090997794.png

Get the newly created hierarchy.

vkalyjmsft_2-1643091759061.png

Here's a article about this: Power BI Date Hierarchy: Learn to Create and Use.

 

Best Regards,
Community Support Team _ kalyj

 

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

 

View solution in original post

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

Week is not automatically in the date hierarchy, but you can manually create a new hierarchy.

Right click the Year column, select Create hierarchy, you can rename the hiererchy as needed, then right click other columns(Qtr, Month, Week, Day), select Add to heirarchy >New Hierarchy.

vkalyjmsft_0-1643090869472.png

vkalyjmsft_1-1643090997794.png

Get the newly created hierarchy.

vkalyjmsft_2-1643091759061.png

Here's a article about this: Power BI Date Hierarchy: Learn to Create and Use.

 

Best Regards,
Community Support Team _ kalyj

 

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

 

Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

As far as i know we can't do that in auto date time intellgence generated date hierarchy , but generally for such cases we need to create a new hierarchy in which we can include a week no.

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Kudoed Authors