Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
| Date | Value | Type | Category |
| 1/1/2020 | 10.1 | 1 | A |
| 1/15/2020 | 10.2 | 2 | A |
| 2/2/2020 | 10.3 | 2 | B |
| 2/17/2020 | 10.4 | 2 | A |
I have an table like that and I need to get the value before taking into account the columns Type and Category. Realize that I don't have values for every day.
For example, if I'm analyzing the day 2/17/2020, the value is 10.4, type 2 and Category A. The Value Before this one has to be of the same type and category, so we need to take the 10.2 of the day 1/15/2020.
https://www.dropbox.com/s/hq9txsnuvetkjqm/luizabolonha.pbix?dl=0
@Anonymous
Please use this as a calculated column:
Column =
var __date = Table4[Date]
return
CALCULATE(
MAX(Table4[Value]),
ALLEXCEPT( Table4 , Table4[Type] , Table4[Category] ),
Table4[Date] < __date
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |