Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
I need to create an extra column in my table that populates the reason code which is 81 into the Type 1 New column, seems very straight forward but can anyone help
| Booking ID | type | Reason Code | New Column |
| 49265 | 1 | 81 | |
| 49265 | 2 | 81 |
|
Solved! Go to Solution.
Hi @mikejmurphy7 ,
Please check if this matches your expected output
if [Reason Code]=null then List.Max(Table.SelectRows(#"Changed Type",each [Booking ID]=[Booking ID])[Reason Code]) else null
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
Hi @mikejmurphy7 ,
Please check if this matches your expected output
if [Reason Code]=null then List.Max(Table.SelectRows(#"Changed Type",each [Booking ID]=[Booking ID])[Reason Code]) else null
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 5 | |
| 5 | |
| 4 |