Forum Discussion
Modify a conditional column
- 9 years ago
If you want to add the condition column in Query Editor, you can add custom column with Power Query syntax.
if [Column1] = "a" then 0 else 1
Click on your column and you should see the formula in the bar just above the table. Or are you doing this in the Query Editor?
Hi,
Thank you for your help, but I am indeed doing this in de query editor where I put 10 conditional lines (if X then Y), how can I change these lines from the editor?
Kind regards,
Matt
- RicardoS9 years ago
Advocate III
Hi Matthias93,
Maybe a little bit too late, but I don't think the reply (that is marked as solution) answered your question. You want to modify your Custom Column in the Query Editor.
To do this, go to your Applied Steps in the Query Settings (on the right side). Then click on the settings icon and then you can change your query. More information here.Kind regards,
Ricardo
- jasbirs8 years agoNew Member
That's right Ricardo, thanks.
- v-sihou-msft9 years ago
Microsoft Employee
If you want to add the condition column in Query Editor, you can add custom column with Power Query syntax.
if [Column1] = "a" then 0 else 1