Forum Discussion

PowwerBI's avatar
PowwerBI
Frequent Visitor
5 years ago
Solved

Adding custom column with many complex conditions

Hi,

 

I could like to add a custom column with many conditions (hundreds) and filling out the dialog is not very user friendly:

is there a better way how to tacle this? Thanks!

  • PowwerBI's avatar
    PowwerBI
    5 years ago

    I've seen the described possibility, but ist is too cumbersome. I will edit the statement in text editor and paste it into the window. This should work - thanks anyway!

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    PowwerBI Well, there is a conditional column dialog that you can use. In Power Query Editor, the Add Column tab and then Conditional Column in the General area. Basically going to be a bunch of if then else statements but the Conditional Column interface is perhaps friendlier. M does not have a true SWITCH statement so perhaps DAX might be a different way to go?

    • PowwerBI's avatar
      PowwerBI
      Frequent Visitor

      I've seen the described possibility, but ist is too cumbersome. I will edit the statement in text editor and paste it into the window. This should work - thanks anyway!