Power BI Integration 2
Power BI Desktop is an application that allows you to connect to, transform, and visualize the data. Using Power BI Desktop, you can connect with the SummitAI data source, visualize the data, and create the required reports. To get a quick understanding of Power BI, browse the following video.
You can leverage the following benefits by using Power BI with the SummitAI database: Follow the below prerequisites: To connect with SummitAI: On the From Summit.Contents pop-up page, specify the Summit API URL and Summit API Key to complete the authentication process. Note: Based on the Summit data collector, the Navigator page displays the list of all DN tables, and two functions named Get Data and Get Schema. Note: Select the function Get Data and specify all the required fields as shown in the below screenshot: Field Description Notes Data Source Name of the DN table. If you want to specify the RawSQL parameter, DataSource is not mandatory. For Example: IM_RPT_DN_TicketMaster Column Name Specify the column names that are required to build the Reports. Use comma separation to specify multiple columns. For Example: Where Condition Specify the condition to filter the data. Use comma separation to specify multiple filters inside the condition. For Example: No of Records Number of records that should be displayed per each page. For Example: Consider you specified the PageSize value as 100. Based on the PageNumber, the API Response displays 100 records. Sort Column Specify the column with which you want to sort the data. Sort Order Order in which the column gets sorted. The value is either ascending or descending. Direct SQL Query SQL query to get the data. For Example: Select the function Get schema and specify all the required fields as shown in the below screenshot: Field Description Notes Search Specify keyword to get the filtered data in the Response. For Example: ticket or master. Data Source Specify the name of a specific DN table to get the list of columns that are available in the Data Source. For Example: IM_RPT_DN_TicketMaster Instead of Summit data connector, you can also connect with the Power Bi by writing a Query in Power BI Query language. To Write and Execute Power BI Query: Under the mini toolbar, select Advanced Editor, and then provide the Query to get the data.What is Power BI Desktop?
Benefits
Integrating SummitAI with Power BI
https://summitbuild.blob.core.windows.net/common/summit-powerbi-dataconnector.zip
C:\Users\Username\Documents\Power BI Desktop\Custom ConnectorsConnecting with SummitAI
Examples:
[Ticket No],[Status],[Registered Time]
Status IN ('New','Assigned','In-Progress','Pending')
SELECT Status,COUNT([Ticket ID]) as cnt,[Registered Time] as time FROM IM_RPT_DN_TicketMaster WITH (NOLOCK) WHERE Status IN ('New','Assigned','In-Progress','Pending') GROUP BY Status,[Registered Time]Querying with the Power BI
let
datasource="SR_RPT_DN_ServiceTicketMaster",
apikey="XXXXXXXXXXXXXXXXXXX",
baseurl="https:// <SummitAI Reporting API URL>/API/getdata",
url=""&baseurl&"?datasource="&datasource&"&apikey="&apikey&"",
source = Json.Document(Web.Contents(url)),
results = Table.FromRecords(source[results])
in
results
let
url = "https:// <SummitAI Reporting API URL>/API/getdata",
body = "{
""DataSource"": ""IM_RPT_DN_TicketMaster"",
""Columns"": ""[ticket id],[Ticket No],[Registered Time],status,[Sup Function Name],[Workgroup Name]"",
""Filters"": ""status in ('new','closed')"",
""PageIndex"": 1,
""PageSize"": ""10000"",
""SortColumn"": ""[ticket id]"",
""SortOrder"": ""ASC"",
""APIKey"":""XXXXXXXXXXXXXXXXXXXXXXXXXXX"",
""RawSQL"":""""
}",
source =
Json.Document(
Web.Contents(
url,
[
Headers = [#"Content-Type"="application/json"],
Content=Text.ToBinary(body)
]
)
),
results = Table.FromRecords(source[results])
in
results
Confluence Cloud Migration Alert: Please refer to known issues you may encounter in Confluence Cloud: https://eitdocs.atlassian.net/wiki/x/wDGwAQ