Forum Discussion

joshua1990's avatar
joshua1990
Icon for Post Prodigy rankPost Prodigy
5 years ago

Get Budget Level based on latest Data

I have a simple table like this:

ArticleBudgetDate
A5001.01.2021
A5001.03.2021
B4001.01.2021
B6001.03.2021

 

As you can see the table lists the budget level per Article.

Now I have a bar chart that shows me the Actuals vs Budget for the last 14 days. Somehow I need to project the latest level until the newest level. But how? The bar chart is filtered for the last 14 days.

1 Reply

  • joshua1990 , You can use date slicer or related date slicer for last 14 days.

     

    You can try a measure like this for latest budget

     

    Measure =
    VAR __id = MAX ('Table'[Article] )
    VAR __date = CALCULATE ( MAX('Table'[Last Date ] ), ALLSELECTED ('Table' ), 'Table'[Article] = __id )
    CALCULATE ( sum ('Table'[Budget] ), VALUES ('Table'[Article] ),'Table'[Article] = __id,'Table'[Last Date ] = __date )