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
I'm trying to write a measure which shows the most recent non-empty value.
My data looks like:
| Year Start Date | Value | Target |
| 1/1/19 | 2 | 6 |
| 1/1/20 | 0 | 5 |
| 1/1/21 | 1 | 4 |
| 1/1/22 | 3 |
Hi,
Shouldn't you just be using:
MyMeasure =
LASTNONBLANK ( 'Table'[Value], 1 )
Regards
Hi @rachellek
You can sort the date... as descending and apply Is not blank filter on the value.
Thanks!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 30 | |
| 26 | |
| 17 | |
| 11 | |
| 10 |