Forum Discussion
Date Hierarchy issues
- 9 years ago
Hi,
here's a quickest solution - calculated column
Year-Quarter = CONCATENATE( [createdon].[Year]," " & [createdon].[Quarter])
thank you for your help.
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.