Hi All,
We are attempting to extract our Application Insights data into PowerBi for analysis. However I'm consistantly having issues whereby each element in custom dimensions is being split into seperate events when viewed in PowerBi. Below is what I have as my query:
WITH flat AS( SELECT A.context.data.eventtime as eventTime, A.context.data.isSynthetic as isSynthetic, A.context.device.type as deviceType, A.context.device.os as os, A.context.device.osVersion as osVersion, A.context.device.locale as locale, A.context.device.userAgent as userAgent, A.context.device.browser as browser, A.context.device.browserVersion as browserVersion, A.context.device.screenResolution.value as screenResolution, A.context.session.id as sessionId, A.context.session.isFirst as sessionIsFirst, A.context.location.clientip as clientIp, A.context.location.continent as continent, A.context.location.country as country, A.context.location.province as province, A.context.location.city as city, A.context.location.point.lat as latitude, A.context.location.point.lon as longitude, ClientId = flat.arrayvalue.ClientId, ClientName = flat.arrayvalue.Client, ContentId = flat.arrayvalue.ContentId, ContentName = flat.arrayvalue.Content, DomainId = flat.arrayvalue.DomainId, Domain = flat.arrayvalue.Domain FROM [export-input] A OUTER APPLY GetArrayElements(A.context.custom.dimensions) flat ) SELECT eventTime, isSynthetic, deviceType, os, osVersion, locale, userAgent, browser, browserVersion, screenResolution, sessionId, sessionIsFirst, clientIp, continent, country, province, city, latitude, longitude, ClientId, ClientName, ContentId, ContentName, DomainId, Domain INTO [pbi-output] FROM flat
And my report in PowerBi is clearly splitting up the custom dimensions (below is a basic example):
eventtime domainid contentid 15/06/2016 13:21 15/06/2016 13:21 744 15/06/2016 13:21 15/06/2016 13:21 1452 15/06/2016 13:21 846 15/06/2016 13:21 15/06/2016 13:21 432 15/06/2016 13:21 509 15/06/2016 13:21 15/06/2016 13:21 1172 15/06/2016 13:21 728 15/06/2016 13:22 15/06/2016 13:22 1392 15/06/2016 13:22 207 15/06/2016 13:22 15/06/2016 13:22 1474
Anyone have any idea how i can get these relating dimensions to group so that i can report on specific Client IDs and Domain IDs.
I've followed the tutorial that can be found here in order to ge this far:
https://azure.microsoft.com/en-gb/documentation/articles/app-insights-export-power-bi/
Many thanks,
Jack