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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
HitcH
Helper II
Helper II

Change the date hierarchy

Hello PBI people!
First of all, I don't have a pbix, it's just a theoretical question.

I have a field date with the automatic hierarchy (week, month, year) but I need to change it: for example I want to consider that the weeks expires together with the month, so for example I might have a week made by 2 days and the other week made by 5 days.

Or I want to calculate the weeks starting from Wednesday.

 

Is it possible to do that? If yes, how?

 

Thanks in advance!

1 ACCEPTED SOLUTION
audreygerred
Super User
Super User

Hi! Check out this article I wrote that discusses custom date tables and one that I love from SQLBI which can be tweaked to meet your specific needs: http://powerbiwithme.com/2023/08/01/the-custom-date-table-edition/ 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
audreygerred
Super User
Super User

Hi! Check out this article I wrote that discusses custom date tables and one that I love from SQLBI which can be tweaked to meet your specific needs: http://powerbiwithme.com/2023/08/01/the-custom-date-table-edition/ 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi Audrey

If I understand correctly, to create that custom date table, the add-in is mandatory?

Hi! There's no add-in, you just need the DAX code which you can download from SQLBI (the link is in my blog post) and then you do 'New Table' in Power BI.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors