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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Automatic grouping by dates

Hello,

I'm new to Power BI.

I looking for a reason why Power BI dose not create automatic grouping by dates. 

I have dates formated as date and when I am draging "date" into axis it do not give me grouping by quaters, months. 

Data are taken from SQL server. 

I would like to ask you for advise with this. 

 

date.jpgdate2.jpg 

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

Hi @Anonymous ,

 

I suggest to create caculated columns as below and add them as a hierarchy manually to work around.

Year = YEAR('Product'[SalesDate])
Q = "Q" &QUARTER('Product'[SalesDate])
Month = MONTH('Product'[SalesDate])
day = DAY('Product'[SalesDate])

 

Capture.PNG

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

I suggest to create caculated columns as below and add them as a hierarchy manually to work around.

Year = YEAR('Product'[SalesDate])
Q = "Q" &QUARTER('Product'[SalesDate])
Month = MONTH('Product'[SalesDate])
day = DAY('Product'[SalesDate])

 

Capture.PNG

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
amitchandak
Super User
Super User

If the column is identified as date it will create date hierarchy in import mode

or refer:

https://community.powerbi.com/t5/Desktop/Date-Hierarchy-Not-Available/td-p/490683

https://community.powerbi.com/t5/Desktop/Date-Hierarchy-Doesn-t-show/td-p/525460

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

Import or direct query? Do you have the automatic hierarchy creation turned off in Options and settings?


Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

I can see not that I have been asking google wrong question.:)

I found that date hierarchy is not avaliable with DirectQuery. 

 

Regards

Starylass

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors