Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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.LeanAndPractise(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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
79 | |
53 | |
39 | |
36 |
User | Count |
---|---|
100 | |
85 | |
47 | |
46 | |
44 |