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
somoksarkar
Frequent Visitor

DSN issue in Azure Power BI integration with R

Dear All,

 

Currently I created a dashboard in Power BI desktop where I have intergrated R plot and I am able to see the viz. Now the point is R plot is accessing the DB in Azure. So While the report creation I used the statement as below.

 

library("RODBC")
dbhandle = odbcConnect(dsn="Azure DB",uid="<My User ID>",pwd="<My Password>")
res = data.frame(sqlQuery(dbhandle, 'select * from <My Table Name>'))

 

The DSN was created in my local system with the name "Azure DB". However after the dashboard published in azure(not app.power.bi) its unable to fetch the dsn info. 

 

Can someone please share any views on what code I need to alter?

 

1 REPLY 1
Anonymous
Not applicable

Hi @somoksarkar,

What do you mean publish the dashboard in Azure(not app.power.bi )? Do you use the Power BI embedded feature?

Have you got any message and do you create User DSN or System DSN for Azure DB in ODBC administrator?


Thanks,
Lydia Zhang

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.