Forum Discussion

saipawar's avatar
saipawar
Icon for Helper IV rankHelper IV
4 years ago

How to create a conditional column based on newly added column in data?

Hi,

 

I have parsed out text from a column (Team)and created  a new one (Team ver1). I would like to rename some values in Team ver1 column but Power BI won't allow me to do that using conditional column as it picks only original columns from the data. 

 

Is there a way to achieve this?

 

 

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi saipawar 

      I assume you are creating a conditional column teamver1 and you would like to replace some values. You can use the "add conditional Column" in power Query and handle the replacement by using the IF clause . 

     

    If this is not you are looking for, then more details is appriciated.

     

    Thanks

    Raj

     

    • saipawar's avatar
      saipawar
      Icon for Helper IV rankHelper IV

      Hi Anonymous 

      I am aware of this functionality. However, the column I intend to use is a derived column. It did not exist in the original table. 

       

       

      • AlexisOlson's avatar
        AlexisOlson
        Icon for Super User rankSuper User

        If you defined the derived column outside of the query editor (presumably with DAX), then you'll need to define your conditional column with DAX as well. You can't bring a DAX calculated column back into the query editor.