Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
This is my first time posting, so bear with me.
I have a dataset like below:
I have the following two measures that calculate running totals. These running totals change based on the current filter context (Category) slicer.
Actual running total (Measure) =
CALCULATE(
SUM('Table1'[Actual]),
FILTER(
ALLSELECTED('Table1'[Date]),
ISONORAFTER('Table1'[Date], MAX('Table1'[Date]), DESC)
)
)
Baseline running total (Measure) =
CALCULATE(
SUM([Baseline]),
FILTER(
ALLSELECTED('Table1'[Date]),
ISONORAFTER('Table1'[Date], MAX('Table1'[Date]), DESC)
)
)
I need to create a measure that identifies "Days Delay" for each row.
For each row I need to take the "Actual running total (Measure)", find the Max "Baseline running total (measure)" that is less than the "Actual running total (Measure)" and then compare the differences in dates.
Let's take row "05 January 2019" as an example.
The big challenge is that the solution needs to be dynamic i.e. if I change the "Category" slicer, the measures need to recalculate and produce the relevant results based on the context of the slicer / filter.
Any direction or help would be greatly appreciated.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 28 | |
| 19 | |
| 11 | |
| 10 |