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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Noak
Helper IV
Helper IV

Date Hierarchy issues

Hello,

I'm working on a big report including dates from 2016 and 2017,

for some reason the date hirrarchy mixes dates from Q1 2016 and 2017.

I would like to present 5 Quarters, Q1 2016 Q2 2016 Q3 2016 Q4 2016 Q1 2017 -  the data is dynamic so the solution should be permanent.

 

Capture.PNG

BR,
Noa.
1 ACCEPTED SOLUTION

Hi,

here's a quickest  solution - calculated column

Year-Quarter = CONCATENATE( [createdon].[Year]," " & [createdon].[Quarter])

 

thank you for your help.

BR,
Noa.

View solution in original post

3 REPLIES 3

Forgot to mention that you can make this dynamic by having your date table reference the earliest and latest dates in your "CreatedOn" field so that the date table always gives you the necessary range.  If you need the range to extend further, than you can either hard code it or use the latest date and add to it, depending on your use case.

 

As for the date hierarchy mixing dates, please provide some additional info so we can discover what is going on.

Hi,

here's a quickest  solution - calculated column

Year-Quarter = CONCATENATE( [createdon].[Year]," " & [createdon].[Quarter])

 

thank you for your help.

BR,
Noa.

A hierarchy is for drill down, so in your case, you would have columns that aggregate for year, and when you drill down it show Q1-4 of that year.  In order to show all the quarters by year, you could expand the hierarchy (forked arrow at top right of visual).  However, if your "createdon" field spans more than the time you wish to show in your chart (Q1 2016 through Q1 2017), I recommend creating your own date table.  Then, create your date fields (i.e. "Year", "Month", "Qtr" etc) and include a Quarter Year key (concatenate the quarter and year) as well as a Quarter Year sort field ("Year" * 10 + "Quarter").  This will allow you to create your own hierarchy but filter the visual to only show the quarters you want.  The sort field allows you to sort the axis so that it isn't sorted alphabetically.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.