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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Date Format

Hi Folks,

I'm unable to see the date hierarchy for a specific field having the  (( Data type: Date )) and (( Format: dd-mm-yyyy )). 
( Note: Data source is connected to Spark DB, direct query  )

 

Spark code :

CAST(P.posting_date_of_document AS DATE) AS posting_date_of_document 
 
Thanks in advance!DataFormat_Issue.PNG!
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Anonymous 

according https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-about 

 This built-in date hierarchy isn't available when using DirectQuery

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

As is said in the document , there is no built-in date hierarachy in Direct Query mode. When importing data, every date/datetime column will have a built-in date hierarchy available by default. The built-in date hierarchy isn't available when using DirectQuery.  If there's a date table available in the underlying source, as is common in many data warehouses, then the DAX Time Intelligence functions can be used as normal.

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

az38
Community Champion
Community Champion

Hi @Anonymous 

according https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-about 

 This built-in date hierarchy isn't available when using DirectQuery

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.