Power BI example with FactoryWiz data

Power BI example with FactoryWiz data

Create a MySQL database user for by following these instructions

https://kb.factorywiz.com/portal/en/kb/articles/create-readonly-user-for-large-screens

Then create a System DNS on your computer by following these instructions

https://kb.factorywiz.com/portal/en/kb/articles/10-2-odbc-installation

Then, log into https://app.powerbi.com and select the “+ New report” option

A screenshot of a computer

AI-generated content may be incorrect.

From there you should be able to click the Download the desktop app link to install Power BI desktop app on your computer.

A screenshot of a computer

AI-generated content may be incorrect.

Open Desktop app and select new Blank report

A screenshot of a computer

AI-generated content may be incorrect.

Select the “Get data from another source” option

A screenshot of a data report

AI-generated content may be incorrect.

Select Other and then ODBC and then click the Connect button

A screenshot of a computer

AI-generated content may be incorrect.

Select the previously configured CyclesDB DSN and then click the OK button (if you do not see the DSN option, then you will need to go back and create an x64 ODBC DSN)

A black screen with a white square

AI-generated content may be incorrect.

You may want to use a TSQL query to retrieve data from the database. To do that, you would expand the Advanced options and enter the SQL statement
Here is an example that will get the latest summary data for “today”

SELECT * FROM summarydata s WHERE s.UDShiftDate>=CURDATE()

A screenshot of a computer

AI-generated content may be incorrect.

If prompted, enter the database user credentials and click the Connect button

A screenshot of a computer

AI-generated content may be incorrect.

 

If you get the following error message, please make sure your DSN driver is MariaDB 3.2.5 Connector or higher (alternatively, you could install and use the MySQL 9.x ODBC Connector to create the DSN)
https://dev.mysql.com/downloads/connector/odbc/5.1.13.html

A screenshot of a computer

AI-generated content may be incorrect.

Once the query has run and the example data is shown, click the Load button to load that data.

A screenshot of a computer

AI-generated content may be incorrect.

Choose the 100% Stacked Bar chart from the Visualizations area of the Power BI Desktop app to place it on the report surface

A screenshot of a computer

AI-generated content may be incorrect.

Expand the Query1 option in the Data area and drag  the UDCnc field onto the X-axis option to put the CNC name on the X axis

Then drag the UDTotAvailSecs the UDTotAvailRunSecs fields onto the Y-axis (by default they should come across as “Sum of” the field)

Your report should now look similar to this

A screenshot of a computer

AI-generated content may be incorrect.


    • Related Articles

    • 10.4 Data Dictionary

      Overview of Database Tables FactoryWiz is an open system, meaning we give users full access to all data for the purpose of writing custom applications and reporting solutions, as well as integrating with other business applications such as ERP ...
    • Preparing for FactoryWiz Monitoring

      Preparing for FactoryWiz Monitoring FactoryWiz Installation This document is to help you understand the preparation which is required to ensure that your system deployment goes as smoothly as possible. We want to make sure that you have a good ...
    • 8.3.2 Data Retention

      Data Retention The Data Retention tab allows you to select how long FactoryWiz™ Monitoring stores the data it collects from your machines. You may set different retention periods for productivity data and event data. Productivity data is anything ...
    • 8.3.3 Manual Data Deletion

      Manual Data Deletion The Manual Data Deletion tab allows you to manually delete all older data collected from all the machines or delete the data collected from specific machines, thus removing them from the FactoryWiz Database. If you want to purge ...
    • 10.3.3 Sample Excel Workbook using FactoryWiz data

      Click this link to download an example Excel Workbook showcasing the types of views that are possible using ODBC Connector in Excel After you download the Excel, you should check to make sure it does not have "the mark of the web", meaning it may ...