icmt.in

ICMT

Academy

WEST BENGAL GOVT. REGD. NO. : L/78128 

AN ISO 9001 : 2015 CERTIFIED INSTITUTE

MYSQL WITH POWER BI

Integrating MySQL with Power BI involves connecting Power BI to a MySQL database, importing data, and using Power BI’s features for analysis and visualization. Here are the general steps to achieve this integration:

Steps:

  1. Install Power BI Desktop:

    • If you don’t have Power BI Desktop installed, download and install it from the official Power BI website.
  2. Open Power BI Desktop:

    • Launch Power BI Desktop on your computer.
  3. Get Data:

    • Click on “Get Data” in the Home tab.
  4. Select MySQL Database:

    • Choose “MySQL” from the list of available data sources.
  5. Enter Connection Details:

    • Enter the necessary connection details, including server name, database name, and authentication method.
  6. Provide MySQL Credentials:

    • Depending on your MySQL setup, you may need to provide the username and password for authentication.
  7. Write SQL Query or Select Tables:

    • You can either write a custom SQL query or select tables directly. Click on “Advanced options” if you want to write a custom query.
  8. Transform and Load Data:

    • Use the Power Query Editor to perform any necessary transformations on the data.
    • Click “Close & Apply” to load the data into Power BI.
  9. Create Visualizations:

    • Once the data is loaded, you can start creating visualizations using the various chart types and tools available in Power BI.
  10. Build Reports and Dashboards:

    • Build reports by adding visualizations to the report canvas.
    • Create dashboards by pinning visualizations to a dashboard for a consolidated view.
  11. Refresh Data:

    • If your data in MySQL changes, you can refresh the data in Power BI by clicking the “Refresh” button.
  12. Save and Share:

    • Save your Power BI report, and if you’re using Power BI Pro or Power BI Premium, you can share it with others.

Example Power BI MySQL Connection:

  1. Get Data:

    • In Power BI Desktop, click on “Home” and then “Get Data.”
  2. Select MySQL:

    • Choose “MySQL Database” from the list.
  3. Enter Connection Details:

    • Enter the server name, database name, and authentication details.
  4. Choose Tables or Write Query:

    • Select tables or write a custom query in the Power Query Editor.
  5. Transform Data:

    • Apply any necessary transformations using the Power Query Editor.
  6. Load Data:

    • Click “Close & Apply” to load the data into Power BI.
  7. Create Visualizations:

    • Use the loaded data to create visualizations on the report canvas.
  8. Save and Share:

    • Save your Power BI file and, if applicable, share it with others.