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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
acamar22
Helper I
Helper I

changing names of future dates for forecasting bar chart

Hi all,

 

I have date in a hierchy bar chart.

 

In my Date Table, I've created an extra month after my data ends. I am using this month as my "Forecasting Month".  I attached a measure to this blank date.

 

However, I can't seem to rename this date to "Forecasting", when I plug it into my table. I am aware this can be done with indexing, but I'd like to keep it in date hierchy form, not text (to drill down). How can I change the name of the final month-date on the bar chart?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @acamar22 ,

Regarding your question, I guess you are using the date hierarchy that Power BI automatically creates.

vzhouwenmsft_0-1720073411317.png

We can manually create a date hierarchy for drilling.

The Table data is shown below:

vzhouwenmsft_1-1720073554511.png

Please follow these steps:

1.Use the following DAX expression to create a table

Table 2 = 
VAR _table = UNION('Table',ROW("Date",BLANK(),"Value",BLANK()))
RETURN ADDCOLUMNS(_table,
"Year",IF(ISBLANK([Date]),"Forecasting",YEAR([Date]) & ""),
"Quarter",IF(ISBLANK([Date]),"Forecasting",QUARTER([Date]) & ""),
"Month",IF(ISBLANK([Date]),"Forecasting",MONTH([Date]) & ""),
"Day",IF(ISBLANK([Date]),"Forecasting",DAY([Date]) & "")
)

vzhouwenmsft_2-1720073713971.png

2.Final output

vzhouwenmsft_3-1720074263382.png

vzhouwenmsft_4-1720074282331.png

 


Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @acamar22 ,

Regarding your question, I guess you are using the date hierarchy that Power BI automatically creates.

vzhouwenmsft_0-1720073411317.png

We can manually create a date hierarchy for drilling.

The Table data is shown below:

vzhouwenmsft_1-1720073554511.png

Please follow these steps:

1.Use the following DAX expression to create a table

Table 2 = 
VAR _table = UNION('Table',ROW("Date",BLANK(),"Value",BLANK()))
RETURN ADDCOLUMNS(_table,
"Year",IF(ISBLANK([Date]),"Forecasting",YEAR([Date]) & ""),
"Quarter",IF(ISBLANK([Date]),"Forecasting",QUARTER([Date]) & ""),
"Month",IF(ISBLANK([Date]),"Forecasting",MONTH([Date]) & ""),
"Day",IF(ISBLANK([Date]),"Forecasting",DAY([Date]) & "")
)

vzhouwenmsft_2-1720073713971.png

2.Final output

vzhouwenmsft_3-1720074263382.png

vzhouwenmsft_4-1720074282331.png

 


Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.