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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Split date column into day/week/year

I have a date column that I am using in a matrix but it doesn't allow me to split it into day/week/year. Ideally, I would like my end user to be able to see the stepped values. From past experiene if I put in a date column it automatically detects the day week month quarter and year. I have checked the data type is set to date.

 

Not sure if it matters - I have the date in rows and measures for values. 

2018-12-20.png

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Hmm, well before they added that feature we used to just create colums like:

 

Year = YEAR([Date])
Month = MONTH([Date])
Day = DAY([Date])

And put them in the matrix Rows area as an ad-hoc hierarchy.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Super User
Super User

Hmm, well before they added that feature we used to just create colums like:

 

Year = YEAR([Date])
Month = MONTH([Date])
Day = DAY([Date])

And put them in the matrix Rows area as an ad-hoc hierarchy.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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