Forum Discussion
From SQL to PowerBI : intermediary file
Good morning community,
after a lot of work, i have to admit i fail at solving this problem.
I currently have several Power BI files, each using a connector, and each being refreshed twice a day by this connector. They get most of their data from a single SQL database, which also has the connector.
I thought i could reduce a lot the server load induced by the refreshes by having an intermediary file, doing the requests (twice a day, still), and then having each Power BI file getting their data from this intermediary file instead of the SQL database.
If i make this file a Power BI file, i can't find out how to properly get data to other Power BI files from this Power BI file.
If i make this file an Excel file, i tried many things, but i don't find how to properly get it updated twice a day without having a dirty solution like the server opening this Excel and a macro refreshing it (which will not happen). I found a "solution" in power automate, but it doesn't work (the script gets executed, supposedly, the data doesn't get refreshed, while power automate says the flow worked fine.
I also found this, https://damobird365.com/export-power-bi-to-excel-with-power-automate/#Populate-an-Excel-file-with-Graph-API , but i don't fully understand everything involved, which makes it a nightmare to reproduce, and even more to maintain, if it really is a solution, which i'm not certain of.
I also tried and considered other things, but all failed.
Thank you for any help, any lead, any info !
30 Replies
- nilendraFabricSuper User
Hello Anonymous
Not sure if you have tried this
Build a Power BI report that connects to your SQL database and performs all necessary data transformations.
Publish this report to the Power BI Service. This creates a dataset in the serviceIn Power BI Desktop, use Get Data > Power BI datasets to create new reports that reference the shared dataset ().
• This uses a Live Connection, so visuals query the centralized dataset instead of the SQL database directly.Or
use Dataflows to extract and transform data from SQL. This stores the data in Azure Data Lake Storage (ADLS)
• use Power BI dataflows to build reports from the pre-processed data.if this is helpful please accept the answer and give kudos
- AnonymousNot applicable
Well i'm trying to do as you said.
I did the Power BI report getting its data from the SQL database. It does a few needed transformations. I published it : where is the dataset ? What i get from publishing is a report and a semantic model.If i use correctly "Get Data", i see then "Power BI semantic model", which is nice because i can select the one i just published, but then i select it and click "connect", it says "DirectQuery isn't available for this dataset. Either this dataset doesn't support DirectQuery, either you selected a dataset stored in My Workspace". Well yeah i published it to my workspace, didn't i ?
I'm okay with the dataflow. Are we talking of Power Automate here ? Could you describe more precisely the process please ?
Thanks for your answer ! I will accept and give kudos as soon as my problem is solved, no worries.
- nilendraFabricSuper User
Semantic models in “My Workspace” cannot be used as Live/DirectQuery sources for other reports. This is a known restriction.
For shared access, semantic models must reside in a dedicated workspace (not “My Workspace”) and have proper permissions.
Create a new workspace (e.g., “Central Data”) in Power BI Service.
Republish your report to this workspace.
• This ensures the semantic model is stored in a shared workspace, bypassing “My Workspace” restrictions.- AnonymousNot applicable
Ohhh it seems good.
I just have an issue, when i do the connection from the Power BI file to the Power BI intermediary file, it says i don't have the authorization to call the Discover method. But i just created the workspace, like you said, i'm administrator of it and all authorizations seem to be put... So i wonder what should i do to solve this.In details :
the first operation in Power Query works, resulting in a table of 5 columns and 1 row, columns named "Id", "Name", "Description", "Kind", "Data". I don't know why the second query is Table.Combine(Source[Data]), but ok..., the third query fails, it is
= Cubes{[Id="Model", Kind="Cube"]}[Data]
and the failure is :DataSource.Error : AnalysisServices : L'utilisateur '<euii>[my company email, i edited]</euii>' n'a pas l'autorisation d'appeler la méthode Discover.
Détails techniques :
RootActivityId : [some id, i edited]
Date (UTC) : 2/18/2025 10:03:52 AM
Détails :
DataSourceKind=AnalysisServices
DataSourcePath=powerbi://api.powerbi.com/v1.0/myorg/[nameoftheDataFile, i edited]
I feel we're close to the solution, thanks to you !
- AnonymousNot applicable
Hi Anonymous,
Thanks for reaching out to the Microsoft fabric community forum.
It looks like you’re trying to optimize the refresh process of multiple PowerBI reports which are pulling data from a single SQL database. As nilendraFabric responded to your queries kindly go through his responses and if you are able to solve your issue then please mark the helpful reply as solution.
I would also take a moment to thank nilendraFabric, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Hammad.
Community Support TeamIf this post helps then please mark it as a solution, so that other members find it more quickly.
Thank you.
- AnonymousNot applicable
I'm probably doing something wrong, i cannot connect the end Power BI files to the intermediary Power BI file.
Could you please provide a detailed step by step way to do it ? My online researches have so far not helped at all.- AnonymousNot applicable
Hi Anonymous,
It sounds like you're trying to connect multiple Power BI reports to a central dataset but are running into some issues. Here’s a step-by-step guide to ensure everything works fine
* Make sure the Intermediary Dataset is Published to a Shared Workspace. Go to your PowerBI Desktopand connect to your SQL database. Do any necessary transformations and modeling and then publish
the report to a shared workspace.
* Enable DirectQuery for Live Connection by going to the workspace where you published the dataset in
PowerBi Service. Now go to Dataset's setting and enable DirectQuery for Live Connections if you want
real-time updates.
* Now connect other reports to the published dataset by creating a new report. here select the data
source in Get Data as Power BI Semantic Models. Select the workspace where you published the
dataset and choose the dataset and click Connect.
Now after your report is done you can publish them as usual.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Hammad.
Community Support TeamIf this post helps then please mark it as a solution, so that other members find it more quickly.
Thank you.
- AnonymousNot applicable
When i use "Get data", "Semantic model", and want to use the semantic model i published on the newly created workspace, it tries to do a direct query, then fails saying
DirectQuery à AS – [nameOfTheModel]AnalysisServices : L'utilisateur '[email of my user]' n'a pas l'autorisation d'appeler la méthode Discover. Détails techniques : RootActivityId : [some id] Date (UTC) : 2/20/2025 9:34:21 AM
Also i don't see where the request newly created "DirectQuery à AS – [nameOfTheSemanticModel]" is in Power Query, i searched everywhere. I do see it "opened" but i don't know where from. It has the 3 steps i've written earlier. On the second one, called "Cubes" and being "= Table.Combine(Source[Data])", there is a warning "This step generates a query that isn't supported by DirectQuery." and there's a button to swap all tables to Import mode, which would be good to me, but when i do, it tries to refresh all data, and does the same mistake i've written up there.In https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-discovery it is said that there's an option to tick to make the dataset discoverable. There isn't : the menu "Endorsement and discovery" is actually a menu "Endorsement" only. I can't find the option anywhere.
If needed i can provide more details on more things i tried to solve this problem one way or another. - AnonymousNot applicable
Hi Anonymous,
As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.
If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.
If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.
Thank you for your patience and look forward to hearing from you.- AnonymousNot applicable
Hello,
i've tried what was told me, and once it did the same problem i reported, once it didn't. Since i wasn't using at that time a file that can properly test the solution, i'm first finishing the job so that i can ACTUALLY test the solution in real conditions and then tell you if it works or not, and in this last case, show a detailed report with screenshots of what's happening.
In a few days, you should see another more on-subject answer from me.
- AnonymousNot applicable
Hi Anonymous,
If you are still unable to solve the issue you can reach out to Microsoft Support by raising a ticket with Microsoft Support.
Please refer below link on how to raise a contact support or support ticket.
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft LearnBest Regards,
Hammad.
- AnonymousNot applicable
You have all my apologies for the delay. This topic is still an issue to my company.
I'll be back to it with what you asked as soon as possible. In the meanwhile, the issue might become easier to solve, since the company is considering using a Premium Per User account instead of a Pro one.
- AnonymousNot applicable
Hi Anonymous,
We are following up once again regarding your query. Could you please confirm if the issue has been resolved?
If the issue has been resolved, we kindly request you to share the resolution or key insights here to help others in the community. If we don’t hear back, we’ll go ahead and close this thread.
Should you need further assistance in the future, we encourage you to reach out via the Microsoft Fabric Community Forum and create a new thread. We’ll be happy to help.
Best Regards,
Hammad.
- AnonymousNot applicable
Hi Anonymous
- AnonymousNot applicable
Hello.
This problem is still an issue for my company.
However, i will no longer be part of the company soon. I explained all the details of this problem to another employee, who is logged here as Coder_BI, and he will, when he has time to dedicate to this problem, come here for help and news about the issue.In the meanwhile, since the problems are unchanged, do not hesitate to post more new working solutions if you think about some.
Thank you for your help, and i hope you will be nice with him ! 🙂
- SatishBodduMicrosoft Employee
Thanks for sharing this here!!!