The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a simple table like this:
Article | Budget | Date |
A | 50 | 01.01.2021 |
A | 50 | 01.03.2021 |
B | 40 | 01.01.2021 |
B | 60 | 01.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.
@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 )
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
8 | |
8 |