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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
U156531
Helper III
Helper III

My Date measure won't create a hierarchy

My Date measure won't create a date hierachy containg year, month, day. Yet I have this same measure with a hierachy in another PBI. It only creates what I have pasted below. Does any one know what I need to change? Thanks.

U156531_0-1716220367614.png

 

U156531_1-1716220567995.png

 

U156531_2-1716220737898.png

 

 

 

2 ACCEPTED SOLUTIONS
CMajka8
Helper I
Helper I

I would remove the auto/date time feature and consider creating your own proper date table. There are severe limitations to using the built in auto date/time: https://www.sqlbi.com/articles/automatic-time-intelligence-in-power-bi/

View solution in original post

v-tangjie-msft
Community Support
Community Support

Hi @U156531 ,

 

Thanks @CMajka8  for the quick reply. I have some other additions to this:

 

As far as I know, measures do not have a hierarchical structure. You can create calculated columns for dates and it will automatically create the hierarchy. You can create multiple measures if you need to show the year, month, quarter and day of the date.

vtangjiemsft_0-1716276072365.png

 

Column = [Date]

 

vtangjiemsft_1-1716276141647.png

Create measures.

 

Year Measure = MAX('Table'[Date].[Year])
Quarter Measure = MAX('Table'[Date].[Quarter])
Month Measure = MAX('Table'[Date].[Month])
Day Measure = MAX('Table'[Date].[Day])

 

vtangjiemsft_2-1716276268631.png

Best Regards,

Neeko Tang

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

View solution in original post

4 REPLIES 4
v-tangjie-msft
Community Support
Community Support

Hi @U156531 ,

 

Thanks @CMajka8  for the quick reply. I have some other additions to this:

 

As far as I know, measures do not have a hierarchical structure. You can create calculated columns for dates and it will automatically create the hierarchy. You can create multiple measures if you need to show the year, month, quarter and day of the date.

vtangjiemsft_0-1716276072365.png

 

Column = [Date]

 

vtangjiemsft_1-1716276141647.png

Create measures.

 

Year Measure = MAX('Table'[Date].[Year])
Quarter Measure = MAX('Table'[Date].[Quarter])
Month Measure = MAX('Table'[Date].[Month])
Day Measure = MAX('Table'[Date].[Day])

 

vtangjiemsft_2-1716276268631.png

Best Regards,

Neeko Tang

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

This is true, however, by using a proper date table, you don't need to create any measures for your date columns. They already exist and you can then use Power BI's powerful time intelligence functions.

Hi @CMajka8 ,

 

Yes, your thoughts are correct. Thank you.

 

Best Regards,

Neeko Tang

CMajka8
Helper I
Helper I

I would remove the auto/date time feature and consider creating your own proper date table. There are severe limitations to using the built in auto date/time: https://www.sqlbi.com/articles/automatic-time-intelligence-in-power-bi/

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors