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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
BaronSdG
Resolver II
Resolver II

Import vs Direct query for reports visualized on sharepoint

Hello everyone,

 

I am making a report that will be published and shared/visualized on a sharepoint page.

 

The data will come from an Azure DB and I don't understand if I should use import or direct query.

I notice that direct query doesn't allow me to do many operations/customization on the dataset, but I need to do many customizations in order to make the report. I would prefer to make an import connection but I am not sure if it can be 1) shared on sharepoint 2) be interactive 3) be up to date periodically.

 

So my question is:

1) Can I create an import connection to the Azure DB which allows the data to be refreshed periodically (once per day)

2) If I share this report with users in a sharepoint, can users interact with it and visualize up to date data?

 

 

7 REPLIES 7
V-lianl-msft
Community Support
Community Support

Hi @BaronSdG ,

 

As @edhans  said,add some details.

If the directquery connection is used, the gateway is not needed, and the data is updated in real time. If you use import mode, you need to configure a gateway for this data source.

Configure scheduled refresh 

Embed the Power BI project report in SharePoint Online 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @V-lianl-msft

 

I will be using import as suggested by @edhans.

 

Now, I have published the report and I went into the Dataset and clicked on Schedule Refresh. I have downloaded the gateway connection and entered with my credentials. I don't get why I need to have a gateway connection if the only data I need is provided only by the Azure DB. 

 

image.png

 

Also, I don't understand why I can't setup a refresh schedule yet.image.png

 

 

Hi @BaronSdG ,

 


@BaronSdG wrote:

Hi @V-lianl-msft

 

I will be using import as suggested by @edhans.

 

Now, I have published the report and I went into the Dataset and clicked on Schedule Refresh. I have downloaded the gateway connection and entered with my credentials. I don't get why I need to have a gateway connection if the only data I need is provided only by the Azure DB

I misunderstood your description before. As you said, using only azure SQL database as the data source does not require a gateway.

In my previous tests, when I changed the direct query mode to import mode, I also failed to set the schedule refresh. I deleted the old dataset in service and republished the changed report, and it worked.

If the problem persists,you could create a support ticket for further help.

Support_Ticket.gif

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

"In my previous tests, when I changed the direct query mode to import mode, I also failed to set the schedule refresh. I deleted the old dataset in service and republished the changed report, and it worked."

 

I don't understand how to delete the old dataset service. When I click  on the 'Ok convert to import mode instead of direct query', I get the dataset downloaded automtically, so it doesn't seem like I need to do further actions.

 

Anyway, after I shifted to import mode, I can see that in my Azure SQL database there are new rows and they are not retrieved by the Power BI report, so I will open a ticket as something is not working as intended.

 

Thanks

I can't open a ticket and request support as I am only offered Q&A/fixed replies...image.png

I've not tested with Azure SQL but according to this article, a gateway is not required. It is an online resource.

 

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
edhans
Super User
Super User

You definitely want Import. Import is what is used over 90% of the time. Direct Query is for very specific circumstances, and as you noted, it is limited in what you can do on the report. DAX and M are also both limited.

 

You just need to set up scheduled refresh to the Azure DB in the report dataset settings in the service once you publish. Then get the embed code for the report from the service and put that in SharePoint. The report is fully interactive there for your users.

 

edhans_0-1596135521948.png

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.