Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Power Query: How to extract first characters from all columns except first two columns in a query

Hi ,

I would like to extract first character from all columns except the first two columns "NAME" and "OBJECT_NAME". I don't wan't to specify the column names each time while extracting since it changes on the basis of period of extracting this report. Currently I can see the code like below. Please help to optimize this code.

4 Replies

  • ImkeF's avatar
    ImkeF
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous 

    is the picture you've posted the desired result? Do you want to change every (but the first 2) column in your table but add a new column that extracts (and combines) the first characters from those columns?