Sometimes, you want to concat a few fields together and have a separator, but you only want the separator when the next field is not empty and not blank ARRAY_CONSTRUCT creates an array from the fields ARRAY_COMPACT removes blanks and "undefined" ARRAY_TO_STRING converts the array to a single string, with a separator SELECT PERSONID , ARRAY_TO_STRING ( ARRAY_COMPACT ( ARRAY_CONSTRUCT ( NULLIF ( ADRLINE1 , '' ), NULLIF ( ADRLINE2 , '' ), NULLIF ( ADRLINE3 , '' ) ) ), ', ' ) AS ADDRESS FROM PERSONTABLE ;
1) Click Data, Get Data, From Other Sources, Blank Query - You might be able to use "From Web", however Blank Query gives you more options 2) Enter The Advanced Editor and Strucutre it as follows... let Source = Json.Document(Web.Contents("https://localhost:7056/ap/endpoint" , [Headers = [Accept="application/json"]])), TableFromRecords = Table.FromRecords(Source) in TableFromRecords