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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
alicek
Helper II
Helper II

AUTOCALENDAR does not automatically let the date column become a hierarchy of year-month-day?

Hello, 

Does anyone know how to make PowerBI recognize a date column automatically as a hierarchy of Day, Month, and Year? It worked in one of my files when it was a simple date column; however, it does not do so in my file that has a separate date table made using AUTOCALENDAR(). 
 
The reason I ask is that currently, the only measure in the date table that PowerBI will recognize as a "continuous" variable for x-axis (and therefore enable a trend line) is the date column in the date table. But it forces all others, like the Year or Month measures, to be categorical, and doesn't let me apply a trend line. 
 
Doesn't work here:

 Date_NoWork_Mzrs.PNG

 
 
 
 
 
Date_NoWork_DAX.PNG
 
 
Does work here:
In my other files, with the date column, it did work.In my other files, with the date column, it did work.
Under the Modeling tab, their Data Type is both "Date."
 
Both of them are recognized as Date data types.Both of them are recognized as Date data types. 
 
Any thoughts?
 
Thank you,
Alice
1 ACCEPTED SOLUTION

Hi @alicek ,

 

I found the following workaround.

Use binning on date.

https://docs.microsoft.com/en-us/power-bi/desktop-grouping-and-binning#using-binning

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


View solution in original post

5 REPLIES 5

Hi @alicek ,

 

I found the following workaround.

Use binning on date.

https://docs.microsoft.com/en-us/power-bi/desktop-grouping-and-binning#using-binning

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


@mwegener Thank you! That worked! It's a work around, but unfortunately it doesn't have quarters as any options, only year, month and day. That's fine for now -- but any idea how to get Quarters in there as an option?

 

Or any idea why it is not automatcally creating the hierarchy like in the other file?

 

 

Hi @alicek ,

 

FYI

https://docs.microsoft.com/en-us/power-bi/desktop-auto-date-time

 

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


JarroVGIT
Resident Rockstar
Resident Rockstar

Have you marked it as a datetable?

 

image.png

 

Kind regards

Djerro123

-------------------------------

If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

Keep those thumbs up coming! 🙂





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

Proud to be a Super User!




Hm @JarroVGIT I'm not seeing that option. Could explain the path to see that button?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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