Forum Discussion

rpinxt's avatar
rpinxt
Solution Sage
4 years ago
Solved

Custom Column Formula Help

Ok so I made this Custom Colum in Query Editor: Now this works just fine however I have 1 extra requirement. So where it takes the first 2 characters of [Material] in 90% of the cases these a...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi rpinxt ,

     

    Please try this formula:

     

    if [Mat.Type]="ZRAW" then try Number.From(Text.Start([Material],2)) otherwise "LB" else "X"

     

    PS: I helped you move your post to the Power Query forum. Posting in the correct forum next time will help you solve the problem faster.

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.