cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mohinderbabu
Helper I
Helper I

Add week ending to date hierarchy

Hi folks,

 

I have a date column and I would like to add Week ending to the Hierarchy, how could I achieve that?

 

Ex: Year - Month - Week Starting.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mohinderbabu , You have to create a custom Hierarchy

Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)

 

Custom Hierarchy
https://stoneridgesoftware.com/creating-hierarchies-in-power-bi/
https://www.youtube.com/watch?v=x6vXVJZ_eTY

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@mohinderbabu , You have to create a custom Hierarchy

Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)

 

Custom Hierarchy
https://stoneridgesoftware.com/creating-hierarchies-in-power-bi/
https://www.youtube.com/watch?v=x6vXVJZ_eTY

Helpful resources

Announcements
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.