Forum Discussion

HitcH's avatar
HitcH
Icon for Helper II rankHelper II
2 years ago
Solved

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!

3 Replies

    • HitcH's avatar
      HitcH
      Icon for Helper II rankHelper II

      Hi Audrey

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

      • audreygerred's avatar
        audreygerred
        Icon for Super User rankSuper User

        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.