This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Looking for help with this error.
= Table.AddColumn(#"Filtered Rows", "Null Value ID", each if[XPO.ID]=null then List.Max([PI])+1 else[XPO. ID])
PI is a list of customer ID's. They are formatted as numbers. I want to return the max from that list +1 to create a unique number if there is no match to the list. What am I missing?
Thanks,
Brian
Solved! Go to Solution.
Hi @Anonymous,
You can use below formula to fix this issue:
= Table.AddColumn(#"Filtered Rows", "Null Value ID", each if[XPO.ID]=null then List.Max(#"Filtered Rows"[PI])+1 else[XPO. ID])
Notice: when you use each keyword with column name, it not mean value list of specific column, it will transform to detail cell value of that column.
Regards,
Xiaoxin Sheng
Hi @Anonymous,
You can use below formula to fix this issue:
= Table.AddColumn(#"Filtered Rows", "Null Value ID", each if[XPO.ID]=null then List.Max(#"Filtered Rows"[PI])+1 else[XPO. ID])
Notice: when you use each keyword with column name, it not mean value list of specific column, it will transform to detail cell value of that column.
Regards,
Xiaoxin Sheng
Thanks, Xiaoxin! I knew it would be some small snytax issue.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 25 | |
| 21 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 62 | |
| 34 | |
| 33 | |
| 25 | |
| 24 |