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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
tsummerer
New Member

date hierarchy

Are Date Heirarchies available for DateTime fields created via the PowerBi API?

 

I would like to be able to group my bar charts by year, month, etc. 

 

I have a 'Push' dataset created via the API. I have tables with 'Datetime' columns. In the Service GUI, when I add the date columns to the Axis section of a Bar Chart, it does not provide a Date Hierarchy. 

 

pbi_screenshot.png

 

I am confident that the column type is 'Datetime'.

I tried changing the column type to 'Date' but it is not supported by the API. 

Calculated columns (such as one that would automatically create the Year, Month, etc) are also not supported by the API. 

 

I tried sending new data with only the date portion, but PBI still tranformed it into a date time (ie. it added the time portion). 

 

 

1 ACCEPTED SOLUTION

And I suppose it doesn't make much difference that I'm using a "Push" dataset, not a streaming? I suppose it's essentially the same problem where the Calendar table would need to be updated any time I added another record....

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @tsummerer,

 

Current power bi not support analysis date to date hierarchy which from streaming dataset.
About analysis date column to date hierarchy, it is create a hidden calendar table based on date records.
But for steaming dataset, the records are increased each time, so it is impossible to create calendar table and anlysis the date column to hierarchy.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

And I suppose it doesn't make much difference that I'm using a "Push" dataset, not a streaming? I suppose it's essentially the same problem where the Calendar table would need to be updated any time I added another record....

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors