Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Power BI Push Dataset

Hi All,
I'm trying to create Power BI push dataset for real time data and My source is memsql.
Is there way to insert data from memsql to Power BI push datset using Python?
Please help me on this?

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

I am not familiar with memsql, here are some video (blogs) on how to connect to MYSQL and SQL Server using phython scripts in Power BI Desktop. Maybe you can refer to them to try to connect to MEMSQL...

Use Python as a Data Source in Power BI

yingyinr_0-1650610203945.png

SQL Server:

How to Connect Python to SQL Server using pyodbc

import pandas as pd
import pyodbc 
conn = pyodbc.connect('Driver={SQL Server};'
                      'Server=RON\SQLEXPRESS;'
                      'Database=test_database;'
                      'Trusted_Connection=yes;')

df = pd.read_sql_query('SELECT * FROM products', conn)
print(df)

yingyinr_1-1650610493465.png

MySQL:

How to Connect Python with SQL Database?

Best Regards

Anonymous
Not applicable

Appreciating your help, But our use case different.
Data ingested to memsql/mysql to every 3 minutes and I need to visualize the data in real time but power bi will not support direct query method to MySQL. So I'm creating streaming dataset for real time data. So I need to fetch the query and directly into dataset using service principal method?

 

Anonymous
Not applicable

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.