Showing results for 
Search instead for 
Did you mean: 
Advocate III
Advocate III

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?

Community Champion
Community Champion

@KarlinOz Selecting your query and clicking Advanced Editor under Home tab will give you access to code behind.



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.

@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.

Hmnmm I'm not sure that is what I am looking for @ankitpatira, that will create a new query wont it? What I am looking for is to edit an existing column in an existing query and change it back from a Conditional Column (automatically changed by Power BI) to a Custom Column which is how I originally created it.

Helpful resources

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors