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
Hi All, Could someone help me with a custom column? I have a table "DateTransactionTable" with date and transaction number , and another table "LastTransactionMonth" with the last date of the month and the last transaction. I want to create a date costum column on table "DateTransactionTable" which if transaction number is greater than the last transaction of the month on table "LastTransactionMonth" and the date on table "DateTransactionTable" is less or equal to the last day of the monht on table "LastTransactionMonth" then add 30 days. See the code I wrote and comes up with error.
= Table.AddColumn(#"Changed Type", "NewDate", each if [Transaction] > (LastTransactionMonth[LastTransactionMonth]) and [Date] <= Date.From(LastTransactionMonth[LastTransactionDay]) then Date.AddDays([Date], 30) else [Date])
Error msg below Expression.Error: We cannot apply operator < to types List and Number. Details: Operator=< Left=[List] Right=1
Replace LastTransactionMonth with Table.Last(LastTransactionMonth).
Note there will be an error if LastTransactionMonth is empty
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 |
|---|---|
| 10 | |
| 6 | |
| 5 | |
| 4 | |
| 2 |