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
| Date | VALUE |
| 01-11-2024 | 126 |
| 02-11-2024 | 494 |
| 08-11-2024 | 78 |
| 08-11-2024 | 88 |
| 25-11-2024 | 98 |
| 30-11-2024 | 108 |
| 02-12-2024 | 118 |
| 03-12-2024 | 128 |
| 06-12-2024 | 100 |
| 06-12-2024 | 90 |
| 28-12-2024 | 200 |
| 31-12-2024 | 110 |
| 01-01-2025 | 20 |
| 02-01-2025 | 84 |
| 03-01-2025 | 145 |
| 07-01-2025 | 25 |
This is my Data.
From that I want to create one matrix with previous day value.
i.e.,
Here,
Solved! Go to Solution.
Hi,
PBI file attached.
Hope this helps.
Thank you so much. 👍🏻
You are welcome.
PREV_LASTNONBLANK =
VAR __prev =
CALCULATE( LASTNONBLANK( DATA[Date], 0 ), DATA[Date] < MAX( DATA[Date] ) )
RETURN
CALCULATE( [SUM Value], DATA[Date] = __prev )PREV_OFFSET =
CALCULATE( [SUM Value], OFFSET( -1, ALLSELECTED( DATA[Date] ) ) )
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Yes, this is work 👍🏻 in this data.
But in my original data (company's data) this is not work for the starting day of month. Can you please tell me what problems may be happening?
But problem is
the Date are not continous, there is a different gaps between two dates
I have been using OFFSET(-1) in such scenarios recently, and I really like it. Maybe give it a try.
This is not work.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |