Creating an Analytics Dashboard from SQL Query
New to using Analytics and using Dashboards. We have this Report, SQL Query that lists out the Activity per Data Source in Health Share Provider Directory. Instead of running it as a report, because it takes a while to run, was wondering if there is a way to do this as a Dashboard instead.
.png)
How can I take the SQL from this report and create a Dashboard instead?
Comments
To create a dashboard based on an SQL query in InterSystems Analytics, you can follow these general steps:
Create a Namespace if Needed: Set up a separate namespace where you can compile messages or report outputs. This includes configuring databases for globals and routines for the namespace [1].
Import and Prepare Code: Develop classes in Studio to fetch and calculate metrics, and compile them for use in your dashboard. Store the processed metrics in persistent classes that can later be used in an analytics cube [1].
Global and Package Mapping: Configure global and package mappings for the namespaces involved in your analytics. These settings allow data to be retrieved from specified sources when building the dashboard [1].
Build Analytics Cube: Use the Analytics Architect to create a cube based on the class that stores the metrics. Define dimensions, measures, and time roll-up elements as needed. Compile the cube and verify its structure [1].
Create Pivot Tables: Access the Analyzer to generate pivot tables based on the cube. Drag dimensions and measures onto rows and columns as appropriate. Save these tables after organizing the data display according to your requirement [1][2].
Design and Add Pivot Tables to Dashboard:
Add Filters and Controls: Configure filter controls directly on widgets in the dashboard editor. Filters allow users to interact and narrow down the data (e.g., by ZIP code or other dimensions). Default values for these controls can also be added to streamline dashboard use [2].
Save and Test Dashboard: Store the dashboard configuration, test interactions, and verify the appearance and functionality. By default, analytics dashboards auto-save upon modification [2].
By completing the steps above, you can effectively transform your SQL query into an operational analytics dashboard, enabling efficient visualization and filtering for users. [1][3][2]
Sources:
This isnt an answer to your specific question but this looks like a measurement of the business hosts in a production, the number of Txns and the average time. Might this be already satisified by the Activity Monitor Dashboard. This dashboard is supported by the data in the tables Ens_Activity.*
I'm not familiar with HealthShare, but if you're just talking about SQL and the ability to create visualizations based on it, take a look at %DeepSee.KPI https://docs.intersystems.com/iris20253/csp/documatic/%25CSP.Documatic…
Working examples can be found here.
https://github.com/evshvarov/samples-bi-demo/blob/master/src/BI/Model/K…
And here
https://github.com/evshvarov/samples-bi-demo/blob/master/src/HoleFoods/…