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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.