Forum Discussion
Robert14358
3 years agoResolver III
Groupby with IF statement
Hello All. I cant seem to get this to work: = Table.Group(#"Changed Type", {"Block_ID"}, { {"Children", each Text.Combine(each if [Block_type] = "Block" then [Block_Name_Child] else null, " ...
- 3 years ago
Robert14358, You can have it in 2 steps.
- Create a custom column with the if else condition
- Use the custom column in the group by
Share sample data and expected output for the right solution!
SivaMani
3 years agoResident Rockstar
Robert14358, You can have it in 2 steps.
- Create a custom column with the if else condition
- Use the custom column in the group by
Share sample data and expected output for the right solution!
- Robert143583 years agoResolver III
hmm okay, i wanted 1 step though 😞