I have an application insights query. And in this query I want to join/combine several columns into a single column for display how can this be accomplished.
I want to combine ip, city, state, country.
customEvents
| where timestamp >= ago(7d)
| where (itemType == 'customEvent')
| where name == "Signin"
| project timestamp, customDimensions.appusername, client_IP,client_City,client_StateOrProvince, client_CountryOrRegion
| order by timestamp desc
strcatis your friend, with whatever strings you want as separators (i just use spaces in the example):also, the
| where (itemType == 'customEvent')in your query is unnecessary, as everything in thecustomEventstable is already acustomEvent. you only need a filter like that onitemTypeif you join multiple tables somehow (likeunion requests, customEventsor ajoinsomewhere in your query that references multiple tables)