Snowflake + Power BI Connections - powerbi

I am trying to connect Snowflake to Power BI. I have downloaded the ODBC driver
https://sfc-repo.azure.snowflakecomputing.com/odbc/win64/latest/index.html but I get an error when I sign in to the snowflake connector with my Microsoft Account. I use AD to login to Snowflake.
This is the error:
section Section1;
shared Query1 = let
Source = Snowflake.Databases("XXXXXXXXXazure.snowflakecomputing.com",
"XXX_XXX_XXXX", [CreateNavigationProperties=null,
ConnectionTimeout=null, CommandTimeout=null]) in
Source;

Does your Azure AD login work in the Snowflake Web UI? I also believe there might be an issue with the March version of Power BI. Try using the February version instead (learn.microsoft.com/en-us/power-bi/desktop-latest-update-archive) and follow this blog: snowflake.com/blog/using-sso-between-power-bi-and-snowflake

Experienced the same problem. We created a case at Microsoft and they responded there's a faulty DLL file (C:\Program Files\Microsoft Power BI Desktop\bin\ODBC Drivers\Simba Snowflake ODBC Driver\SnowflakeODBC_sb64.dll in PowerBI March 2020 release (2.79.5768.1082) which is causing this failure.
We've received an updated DLL file and now the problem is solved. This update will be included in the next PowerBI release (don't know when this release is planned). For now there are a few possible solutions:
Request updated DDL with Microsoft and replace faulty file
Go back to the feb 2020 release of Microsoft PowerBI
Wait for next release PowerBI

As indicated by Suzy... In the March release of Power BI Desktop there was a bug introduced which caused this error. Completely install this version and download a previous version. I don't know if the April or May version has been released yet but I would hope MS fixed it in a more recent build.
If you are interested in some information on how to securely implement Power BI scheduled refreshes without using the data gateway, check out the LinkedIn article I wrote within the last day: https://www.linkedin.com/pulse/securely-using-power-bi-snowflake-bryan-meier/

Related

Cannot use Direct Query Data Set on Power BI online

I'm trying to use the Direct Query feature in Power BI
It is working on Power BI Desktop, but when I publish it to Power BI online, it gives the error below.
The source database is Azure SQL Database with pricing tier Standard S0: 10 DTUs.
The Power BI license is Premium (I've also tried with Pro).
The firewall setting of the Azure SQL Database
The error:
Cannot load model
Couldn't load the model schema associated with this report. Make sure you have a connection to the server, and try again.
Please try again later or contact support. If you contact support, please provide these details.
Activity ID671fca94-b76e-4660-a944-dff3b06235b3
Request ID748c1fb6-d8c1-b1af-072a-ea49a79c6b64
Correlation ID862117fb-f595-4130-40be-f1d195fa7cbe
TimeSat Sep 18 2021 18:13:33 GMT+0200 (Central European Summer Time)
Service version13.0.16736.54
Client version2108.5.07549-train
Cluster URIhttps://wabi-europe-north-b-redirect.analysis.windows.net/
When you are using Azure SQL Database as a data source, you must provide credentials before the Power BI service shows the published report.
Follow the instructions to provide the credentials from this Microsoft document.
If credentials are not added error occurs when opening the published report or a dataset that is created with the DirectQuery connection.

How do I use data in Power BI Desktop that is either live or frequently updated?

I want to create a dashboard for our office that shows the progress of my team in real time.
I get the data from an on premises sql database, modeled the data in Power BI Desktop, and want to show the data on a TV that shows the Power BI website.
But how do I keep the data up to date?
I know that the Power BI Website offers a scheduled refresh but I can only set 7 times per day and I want the dashboard to refresh at least every 5 minutes. I also know about the streaming datasets but you cant use them in Power BI Desktop and I want to use custom visualisations. When I try to use Direct Query I get the following message :
This Step leads to a Query which is not supported in Direct Query Mode.
Is it possible to create live dashboards using Power BI? Or do you know software that is more suitable for my purpose?
This is possible with a Power Bi Report Server installed on premises and SQL Server Agent running with your on premises sql database. You develop your report and save it to the Power Bi Report Server. Then you can setup your Data Refresh interval to every 5 minutes.
This walk through shows you how to setup a Data refresh interval for every 2 minutes. Use it as a guide to create your report and save to Report Server.
Once saved to Report Server you can setup a data refresh interval for your report to every 5 minutes.
You will need the latest version of Report Server (March 2018 at the time of this answer) and a the latest version of Power Bi Desktop Optimized for Report Server (March 2018 also). SQL Server Agent will be needed to be installed at your SQL Server. The SQL Server Agent will store the data refresh job specification that you define using the Power Bi Report Server interface.

Live connect to SSAS Tabular from Power BI not working

I have a working SSAS tabular model and I want to connect Power BI with live connection to this model. In the model there is a role (READ) for user DOMAIN\aldo. In Power BI desktop everything works fine. I can create report I can see data. In Power BI services I created gateway and successfully connected gateway. Upload to Power BI services was without problems. But despite of this I cannot see data in Power BI services.
Details:
ssas runs on NT service\mssqlserverolapservices
ssas admin technicUser
user in PBI: aldo#boston.com
user in client (according to whoami /upn): aldo#seattle.com (this is user DOMAIN\aldo in SSAS role)
mapping done in gateway to replace boston.com with seattle.com
user used in Gateway: technicUser
I can see user aldo#seattle.com in profiler as effective user name
<Catalog>AW</Catalog>
<SspropInitAppName>PowerBI</SspropInitAppName>
<EffectiveUserName>aldo#seattle.com</EffectiveUserName>
Error message in POwer BI Services:
Couldn't retrieve the data for this visual. Please try again later.
Please try again later or contact support. If you contact support, please >provide these details.
Activity ID8661ae16-5c87-4d04-9049-1e841341f25e
Request ID15355511-8ce9-2842-0eea-df1117ecb280
Correlation ID3e50c72c-06e8-8c81-8a44-78af1f309549
TimeWed Mar 14 2018 14:01:41 GMT+0100 (Central Europe Standard Time)
Version13.0.4622.132
Any idea what I´m missing to make to work?
I had the same error, like you mentioned in your comment. It has to do with the 32 or 64 bit version of the DLL.
OLE DB provider 'MSOLAP.5' cannot be instantiated
COMException (0x80040154)
80040154 Class not registered
I managed to resolve this by deregistering the 32-bit versions
“C:\Program Files (x86)\Microsoft Analysis Services\AS OLEDB\110\msolap110.dll”
“C:\Program Files (x86)\Microsoft Analysis Services\AS OLEDB\120\msolap120.dll”
and registering the 64 bit version.
“C:\Program Files\Microsoft Analysis Services\AS OLEDB\120\msolap120.dll”
In a command prompt running as admin you use the regsvr32 command.
To register a dll:
regsvr32 <pathToDLL>
To unregister a dll:
regsvr32 -u <pathToDLL>
From reference: PBI Forums

Is it possible to connect Power BI Report to a Shared Data Source in the Power BI Report Server (on-premises)

I have a report (.pbix file) successfully deployed to Power BI Report Server and I want to connect it to a Shared Data Source I've created (as I always do when I deploy SSRS reports) independently, but I do not see any possibility to do that...
It seems like there is only option to use embedded data sources and configure them all separately for Power BI reports.
Is it true or I just haven't figure it out?
Data Source
Report
Unfortunately, no, it is not possible to connect a Power BI report to a shared data source like you're hoping. I had the same hopes, but I guess Microsoft hasn't gotten there yet.
See: https://community.powerbi.com/t5/Desktop/Shared-data-Source/m-p/175620/highlight/true#M76987
Although it is fairly straight forward with Power BI Service (PowerBI.com), it is not the case with Power BI Report Server, running on premise.
There is a feature request that remains 'declined' so far, on the Power BI Idea site.
This link should be helpful.
Shared data source connection (live to Tabular SSAS) for reports published on Power BI Report Server

an error occurred during an attempt to establish a connection to the external data source

I have one Tabular SSAS project & I have deployed it on SQL Server Analysis Service 2012.
Then I have created a BISM connection to that deployed project as in following way.
Then I have created one PowerPivot excel report out of that BISM workbook using its connection string & it is working correctly in Excel.
But when I upload it to the SharePoint, it give me following error while refreshing the Data from BISM workbook.
this error is observed only when I open it on browser i.e. Excel Web Access.
but the same error is not observed when I refresh the report in Microsoft Excel 2013.
why is it giving error on only SharePoint i.e. Excel Services. due to this I am not able to change Slicer's either.
One of the solution I found was to use some Hot Fix of SQL Server. but I haven't tried this. Plz refer the below link Hot Fix for SQl Service Pack 1 Update
Please help!
Thanks in advance.
This refresh should be possible, assuming permissions are set up correctly. You should post ULS logs for the time period of the refresh.
Does this same thing happen if you do a scheduled refresh (and choose refresh now)?