The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Date Hierarchy auto convert into normal date despite of i have already check the option of auto date/time in time intellegence feature in Power bI
Solved! Go to Solution.
Hi @proavinash ,
Thank you for reaching out to Microsoft Fabric Community.
Thank you @grazitti_sapna and @maruthisp for the prompt response.
If Power BI is automatically converting your date field into a flat date instead of showing it as a hierarchy, you can resolve this by creating a dedicated Date table using the following DAX
DateTable =
ADDCOLUMNS (
CALENDAR (DATE(2020, 1, 1), DATE(2030, 12, 31)),
"Year", YEAR([Date]),
"MonthNumber", MONTH([Date]),
"MonthName", FORMAT([Date], "MMMM"),
"Quarter", "Qtr" & FORMAT([Date], "Q")
)
Establish a relationship between the Date column in your main table and the Date column in the DateTable.
Use the fields from the DateTable (such as Year, Quarter, Month) to create and display a custom date hierarchy in your visuals.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thank you!!
Hi @proavinash ,
I hope the information provided is helpful. Feel free to reach out if you have any further questions or would like to discuss this in more detail. If responses provided answers your question, please accept it as a solution so other community members with similar problems can find a solution faster.
Thank you!!
Hi @proavinash ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If the responses has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you!!
Hi @proavinash ,
May I ask if the provided solution helped in resolving the issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you!!
Hi @proavinash ,
Thank you for reaching out to Microsoft Fabric Community.
Thank you @grazitti_sapna and @maruthisp for the prompt response.
If Power BI is automatically converting your date field into a flat date instead of showing it as a hierarchy, you can resolve this by creating a dedicated Date table using the following DAX
DateTable =
ADDCOLUMNS (
CALENDAR (DATE(2020, 1, 1), DATE(2030, 12, 31)),
"Year", YEAR([Date]),
"MonthNumber", MONTH([Date]),
"MonthName", FORMAT([Date], "MMMM"),
"Quarter", "Qtr" & FORMAT([Date], "Q")
)
Establish a relationship between the Date column in your main table and the Date column in the DateTable.
Use the fields from the DateTable (such as Year, Quarter, Month) to create and display a custom date hierarchy in your visuals.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thank you!!
Hi @proavinash
Checklist to Ensure Date Hierarchy Works
1. Auto Date/Time enabled in BOTH places:
From your screenshot, you’ve correctly enabled:
2.Check if your column is actually of Date or Date /Time type:
3.Check visuals – is it a Table, Matrix, or other
🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!
format already selected date, the problem is every time when open power bi desktop it convert to date hierarchy , i every time correct this and change it to hierarchy and save but when i open it again , it shows normal date , date hierarch is disappear.
Hi proavinash,
Even if you have Auto Date/Time enabled, sometimes the hierarchy disappears if you use the wrong column type or don’t mark your date table. Always use a proper date table, mark it, and drag the date field into your visual to get the hierarchy back. If it still doesn’t work, check that your column is the “Date” type and not text.
Please let me know if you have any questions.
If this reply helped solve your problem, please consider clicking "Accept as Solution" so others can benefit too. And if you found it useful, a quick "Kudos" is always appreciated, thanks!
Best Regards,
Maruthi
LinkedIn - http://www.linkedin.com/in/maruthi-siva-prasad/
X - Maruthi Siva Prasad - (@MaruthiSP) / X