Forum Discussion
IF-Then using columns
- 1 year ago
Try this in the formula bar and replace #"Changed Type" with the name of the previous step.
= Table.ReplaceValue(#"Changed Type", each if [Inventory Status] = "Allocation" then [Allocation Pallets] else false, each [Pallets],Replacer.ReplaceValue,{"Allocation Pallets"}) - 1 year ago
To create the Allocation Pallets column in Power Query:
-
Add Conditional Column: Go to Add Column > Conditional Column.
- Set:
- Column Name: Allocation Pallets.
- Condition: Inventory Status = "Allocation".
- Output: Pallets.
- Else: 0.
- Set:
-
Formula Alternative: Use this formula if editing directly: = Table.AddColumn(Source, "Allocation Pallets", each if [Inventory Status] = "Allocation" then [Pallets] else 0)
-
Hi chrismoncrief ,
We haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.If community member response addressed your query, please mark it as Accept as Solution and click Yes if you found it helpful.If you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!