Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Good day experts
I am trying to add a column to an existing table in the data view using a DAX query. The requirement is to determine the second half of the fiscal year using today's date. If the date falls in this 2nd half of the year, the term "HTD2 (Oct - Mar) " must be added in the Type column, and the value 3 in the Order column. As the fiscal year stretches from April to March, the second half falls over the change from one calendar year to the next. With the currently used calculation, if the current month is Oct, Nov or Dec, the calculation is incorrect. The current calculation is as follows:
Solved! Go to Solution.
Hi @Ada_Danelle ,
I created a sample pbix file(see the attachment), please check if that is what you want. Please update the formula of calculated table as below:
Calendar =
ADDCOLUMNS (
CALENDAR (
IF (
MONTH ( TODAY () ) < 10,
DATE ( YEAR ( TODAY () ) - 1, 10, 1 ),
DATE ( YEAR ( TODAY () ), 10, 1 )
),
IF (
MONTH ( TODAY () ) < 10,
DATE ( YEAR ( TODAY () ), 3, 31 ),
DATE ( YEAR ( TODAY () ) + 1, 3, 31 )
)
),
"Type", "HTD2 (Oct - Mar) ",
"Order", 3
)
Best Regards
Hi @Ada_Danelle ,
I created a sample pbix file(see the attachment), please check if that is what you want. Please update the formula of calculated table as below:
Calendar =
ADDCOLUMNS (
CALENDAR (
IF (
MONTH ( TODAY () ) < 10,
DATE ( YEAR ( TODAY () ) - 1, 10, 1 ),
DATE ( YEAR ( TODAY () ), 10, 1 )
),
IF (
MONTH ( TODAY () ) < 10,
DATE ( YEAR ( TODAY () ), 3, 31 ),
DATE ( YEAR ( TODAY () ) + 1, 3, 31 )
)
),
"Type", "HTD2 (Oct - Mar) ",
"Order", 3
)
Best Regards
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |