Forum Discussion
PQ How to replace 1 to 0 ?
Hi All
- Anonymous5 years ago
Hi Anonymous ,
The operation in Power Query will be used for the entire column. Currently it's not support the change the value of single row.
You may submit this as an idea.
https://ideas.powerbi.com/ideas/
Best Regards,
Jay
7 Replies
- Fowmy
Super User
- AnonymousNot applicable
Hi Fowmy
Thank you very much for sharing, But it will replace that column every row. what i need is just only edit that column at certain row.
Paul
- Fowmy
Super User
Anonymous
Then you need to do it in the source. In PQ, you apply logic, if that logic meets, you perform an action.________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
- mahoneypat
Microsoft Employee
I agree you should change it in the source. For a short-term fix, you could add a custom column with
= [User] = "[email protected]" then 0 else [IsManager]
Regards,
Pat
- AnonymousNot applicable
Hi Mahoney
Thank you for sharing.
I don't understand why i need to create condition , since i only need to edit the table data.
Paul
- negi007
Community Champion
Anonymous When you change value in powerquery window, it will replace all values. So there is no direct way to change one cell value and replace with other. Using a condition, you can force only a certain value to be replaced based on fullfilling the criteria.
You can refer to below link as well for more details
https://stackoverflow.com/questions/59827153/change-value-of-a-single-cell-in-power-bi
- AnonymousNot applicable
Hi Anonymous ,
The operation in Power Query will be used for the entire column. Currently it's not support the change the value of single row.
You may submit this as an idea.
https://ideas.powerbi.com/ideas/
Best Regards,
Jay