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
Hello!
For exampleHow can I get the value from previous dates, if my column has more dates than other table?
Solved! Go to Solution.
Here it is,
I have named these 2 tables as A and B
First create a calculated column in the first Table shown in the Picture
DateKEY = A[Date]&A[KEY]
and then create another calculated column to get the revenue
Result=LOOKUPVALUE(A[Revenue],A[DateKEY],IF(ISBLANK(LOOKUPVALUE(A[Date],A[DateKEY],B[Date]&B[KEY])),CALCULATE(MAX(A[Date]),FILTER(A,A[Date]<EARLIER(B[Date]))),LOOKUPVALUE(A[Date],A[DateKEY],B[Date]&B[KEY]))&B[KEY])
Hello!
I need a column, where calculate 'revenue' by date, and key. If date is blank, I need previous value (revenue).
Thanx!
Here it is,
I have named these 2 tables as A and B
First create a calculated column in the first Table shown in the Picture
DateKEY = A[Date]&A[KEY]
and then create another calculated column to get the revenue
Result=LOOKUPVALUE(A[Revenue],A[DateKEY],IF(ISBLANK(LOOKUPVALUE(A[Date],A[DateKEY],B[Date]&B[KEY])),CALCULATE(MAX(A[Date]),FILTER(A,A[Date]<EARLIER(B[Date]))),LOOKUPVALUE(A[Date],A[DateKEY],B[Date]&B[KEY]))&B[KEY])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 46 | |
| 44 | |
| 29 | |
| 20 |
| User | Count |
|---|---|
| 202 | |
| 130 | |
| 102 | |
| 71 | |
| 55 |