Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a problem with format of my Date field. The field is recognized as date field, it shows values chronologically, but I can not use the date field as hierarchies. The date value is showed in format Month.Day.Year 12:00:00. For example June 30th 2022 would be shown 06.30.22 12:00:00. I can not format the field because I import data via Power BI dataset and this option is not available. Anozher issue is that I can not create any measure where with date functions (for example Year-to-Year comparison or rolling average) where date hierarchies must be used. Anyone can help with this? Thanks a lot.
Solved! Go to Solution.
Hi @dmatliak ,
The date hierarchy will work for you when the below conditions are met:
For more details, please kindly refer to the blog:
Why there is no date hierarchy - Microsoft Power BI Community
When you connect to Power BI datasets, the default mode is Live connection, which prohibits changing the data type/data format/ create custom hierarchy.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dmatliak ,
The date hierarchy will work for you when the below conditions are met:
For more details, please kindly refer to the blog:
Why there is no date hierarchy - Microsoft Power BI Community
When you connect to Power BI datasets, the default mode is Live connection, which prohibits changing the data type/data format/ create custom hierarchy.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@dmatliak , if you have date table, joined with your date. You should use time intellignece. Using date hierarchy is not a good idea
Example measures
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s
Hi, thanks for you quick reply. But there is a problem with formate of my date field ("leave_date"). It is not formatted properly as date. And I can not format is because I import data from Power BI dataset. See below, I wanted to calculate YTD number of lost clients, but it did not work properly because "leave_date" is not a date field.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
79 | |
58 | |
35 | |
34 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |