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'm having trouble creating a date hierarchy in Power BI. I've created a calculated column named 'FechaEntregaCalculada' using the following DAX formula:
FechaEntregaCalculada = DATE(
YEAR('Archivo de prueba'[Fecha Entrega]),
MONTH('Archivo de prueba'[Fecha Entrega]),
DAY('Archivo de prueba'[Fecha Entrega])
)
Despite this, when I right-click on the column and try to create a hierarchy, the option isn't available.
I've already tried the following:
I'm not sure what else to try. Any suggestions would be greatly appreciated.
Here are some additional details that might be helpful:
Solved! Go to Solution.
Try to create a calculated table as your date dimension :
DateDimension =
ADDCOLUMNS(
CALENDAR(DATE(2020,1,1), DATE(2030,12,31)),
"Year", YEAR([Date]),
"Month", MONTH([Date]),
"MonthName", FORMAT([Date], "MMMM"),
"Quarter", QUARTER([Date]),
"Day", DAY([Date]),
"DayOfWeek", WEEKDAY([Date]),
"WeekDayName", FORMAT([Date], "dddd"),
"IsWeekend", IF(WEEKDAY([Date], 2) > 5, TRUE, FALSE)
)
Link it to your table (consider that it is a fact) and then use the columns from DateDimension and create the hierarchy you want. Don't forget to mark the DateDimension as Date table.
There is no need to do this in Power Query or in DAX. Dates are generally immutable. Create an external reference table that has everything precomputed.
There is no need to do this in Power Query or in DAX. Dates are generally immutable. Create an external reference table that has everything precomputed.
Try to create a calculated table as your date dimension :
DateDimension =
ADDCOLUMNS(
CALENDAR(DATE(2020,1,1), DATE(2030,12,31)),
"Year", YEAR([Date]),
"Month", MONTH([Date]),
"MonthName", FORMAT([Date], "MMMM"),
"Quarter", QUARTER([Date]),
"Day", DAY([Date]),
"DayOfWeek", WEEKDAY([Date]),
"WeekDayName", FORMAT([Date], "dddd"),
"IsWeekend", IF(WEEKDAY([Date], 2) > 5, TRUE, FALSE)
)
Link it to your table (consider that it is a fact) and then use the columns from DateDimension and create the hierarchy you want. Don't forget to mark the DateDimension as Date table.
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 |
---|---|
79 | |
73 | |
58 | |
36 | |
32 |
User | Count |
---|---|
90 | |
62 | |
61 | |
49 | |
45 |