Forum Discussion
How to Use If function at each row level
- 4 years ago
Hi Anonymous ,
1. First group by column [Order Num].
2. Then add a custom column.
= Table.AddColumn(Table.AddIndexColumn([ALL], "Index", 1), "Count Rows", each if [Index] = 1 then 1 else 0)3. Delete the other columns and keep only the Custom column, and extend it.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
1. First group by column [Order Num].
2. Then add a custom column.
= Table.AddColumn(Table.AddIndexColumn([ALL], "Index", 1), "Count Rows", each if [Index] = 1 then 1 else 0)
3. Delete the other columns and keep only the Custom column, and extend it.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.