Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi Everyone,
How can I add "Half Year" to the date hierarchy?
Any help would be highly appreciated. TIA
Solved! Go to Solution.
Hello you can add a calculated column
=YEAR([Date])&" HY "&ROUNDUP(MONTH([Date])/6)
Thanks, @Floriankx.
I have added this custom column and also a custom date hierarchy adding this column to it.
Just a small correction in your code, need to add 0 after the 6 for ROUNDUP.
Half Year=YEAR([Date])&" HY "&ROUNDUP(MONTH([Date])/6,0)
I create the hierarchy as shown in the solution of
https://community.powerbi.com/t5/Desktop/Date-Hierarchy-at-Hourly-Level/td-p/210538?lightbox-message....
Thanks again @Floriankx
Hi team
I got an error for the operator "&" when I put the solution in my PowerQuery:
Any ideas how I can work around it? Thaaaaaanks
Here is an alternative to the calculation meathod. @vishnuprashanth @iamprajot @Floriankx
Right click on you Date column... even if it is the full date and then select new group.
Then Bin it by 6 Months
Hello you can add a calculated column
=YEAR([Date])&" HY "&ROUNDUP(MONTH([Date])/6)
Thanks, @Floriankx.
I have added this custom column and also a custom date hierarchy adding this column to it.
Just a small correction in your code, need to add 0 after the 6 for ROUNDUP.
Half Year=YEAR([Date])&" HY "&ROUNDUP(MONTH([Date])/6,0)
I create the hierarchy as shown in the solution of
https://community.powerbi.com/t5/Desktop/Date-Hierarchy-at-Hourly-Level/td-p/210538?lightbox-message....
Thanks again @Floriankx
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
51 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |