Forum Discussion
convert conditional column to custom column
I searched the forum but didn't find anyone with my problem.
In Query Editor:
I created a new custom column.
Later i needed to make a change to it and went back to edit it (clicking on the gear wheel icon in the Query Settings) but Power BI has converted it to a Conditional Column and I have lost access to doing a more complex query by using code. Is there a way to edit the code behind the Conditional Columns? Or is there a way to convert a Conditional Column to a Custom Column?
4 Replies
- ankitpatiraCommunity Champion
KarlinOz Selecting your query and clicking Advanced Editor under Home tab will give you access to code behind.
- KarlinOzAdvocate III
Thanks for that suggestion ankitpatira I found that and it is useful. It would be even better if we could isolate it to just the code for that column as in the Custom Column editor with which I created the column in the first place. In the Advanced Editor we have the code for the whole query.
- ankitpatiraCommunity Champion
KarlinOz In that case use Enter Data option under Home tab which will let you create seperate table / query and so Advanced Editor code for that will be isolated from your original query.