Forum Discussion
date hierarchy - year & Quarter issue
- 5 years ago
Hi,
Please correct me if I wrongly understood.
If you can see your Calendar Table (or Dates Table),
- find a Year
- right-click the mouse
- create a hierarchy
- find a Quarter
- right-click the mouse
- add into the hierarchy
I added a link for a short video.
I hope this is what you are looking for.
Hope it resolves your issue?
Did I answer your question? Mark my post as a solution!
Appreciate your Kudos, Press the thumbs up button!!https://drive.google.com/file/d/18vlvgv3ri0coCpAFO8SKxuV3LCZ1GWI7/view?usp=sharing
- 5 years ago
Hi pauliuseg
Download PBIX file with Date Table
For this you need to create your own DateTable with a column that has Year Qtr, and use that in your slicer. See my PBIX file above for such a DateTable. Copy the code for the Datetable table from this into your own file to create your the DateTable. Chnage the parameters to suit you e.g. the start and end years.
Mark this as a Date Table and then make sure their is a relationship from the table to your fact table.
This is the line of code that creates the Year Qtr column
"YearQtr", YEAR([Date]) & " Qtr " & INT((MONTH([Date])+2)/3),Regards
Phil
Hi,
Please correct me if I wrongly understood.
If you can see your Calendar Table (or Dates Table),
- find a Year
- right-click the mouse
- create a hierarchy
- find a Quarter
- right-click the mouse
- add into the hierarchy
I added a link for a short video.
I hope this is what you are looking for.
Hope it resolves your issue?
Did I answer your question? Mark my post as a solution!
Appreciate your Kudos, Press the thumbs up button!!
https://drive.google.com/file/d/18vlvgv3ri0coCpAFO8SKxuV3LCZ1GWI7/view?usp=sharing
thanks , yes, it's both solutions, need to create new hierarchy and ten you can add as many dimensions as you want , joining them together.