Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I have a set of data where a certain value appears multiple times. I want to know the date that the previous value appeared to the current date. Example below of data.
Name | Date |
Blue | 1/1/2022 |
Red | 8/4/2021 |
Blue | 5/1/2021 |
Blue | 4/2/2021 |
Green | 4/1/2021 |
Green | 2/3/2021 |
Example of what I need for results:
Name | Date | Previous Date |
Blue | 1/1/2022 | 5/1/2021 |
Red | 8/4/2021 | null |
Blue | 5/1/2021 | 4/2/2021 |
Blue | 4/2/2021 | null |
Green | 4/1/2021 | 2/3/2021 |
Green | 2/3/2021 | null |
Any help would be greatly appreciated. Thank you in advance!
Solved! Go to Solution.
A new column
maxx(filter(Table, [Name] =earlier([Name]) && [Date] <earlier([Date]) ) , [Date])
A new column
maxx(filter(Table, [Name] =earlier([Name]) && [Date] <earlier([Date]) ) , [Date])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
27 | |
20 | |
15 | |
12 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
18 |