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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
teflonreis
Frequent Visitor

dateadd in existing measure

Dear everyone

I would like to ask for your help.

 

I use a dax measure to visualise a bar chart. I want to shift the bar of March 5 month ahead of August and so forth using the dateadd function. 

Your help is greatly greatly appreciated.

 

teflonreis_0-1675930493969.png

 

My current measure is this:

forecast measure =
VAR forecast =
CALCULATE (
SUM ( Execution_forecast_tbl[weighted_effort_FOM] ),
FILTER (
Execution_forecast_tbl,
IF (
OR (
OR (
Execution_forecast_tbl[forecast type] = "MDB forecast",
Execution_forecast_tbl[forecast type] = "SF STR"
),
Execution_forecast_tbl[forecast type] = "SF TR"
),
Execution_forecast_tbl[timescale] > EOMONTH ( TODAY (), 0 )
)
)
)
RETURN
forecast

 

2 REPLIES 2
FreemanZ
Super User
Super User

hi  @teflonreis,

just add the DATEADD part like:

forecast measure =
VAR forecast =
CALCULATE (
    SUM ( Execution_forecast_tbl[weighted_effort_FOM] ),
    FILTER (
        Execution_forecast_tbl,
        IF (
            OR (
                OR (
                    Execution_forecast_tbl[forecast type] = "MDB forecast",
                    Execution_forecast_tbl[forecast type] = "SF STR"
                ),
                Execution_forecast_tbl[forecast type] = "SF TR"
            ),
            Execution_forecast_tbl[timescale] > EOMONTH ( TODAY (), 0 )
        )
    ),
    DATEADD(DateTable, 5, MONTH)
)
RETURN
forecast

 

or?

 

heeey

Thanks for the response.

 

What could I use in the first line of Dateadd for Datetable. I have a calender table. Also have a time column in the Execution_forecast_tbl[timescale].

Tried both so far with no success 😞

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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