postgresql
15 TopicsPower BI Paginated and PostgreSQL: How do i get all data if parameter is blank?
I'm using a PostgreSQL ODBC data source in an Power BI Paginated report. I have a text box parameter and it can be blank and if it's blank i want to bring all data like that parameter not exist but if text box has value then i want to filter my query with that value. How can i do that? My query example; `SELECT Column1 FROM MyTable WHERE Column1 in (case when ?='' then Column1 else ? end) I tried this code but this is not working.Solved351Views0likes1CommentPowerBI gateway / postgresql / npgsql error 400
Good day, please bear with me on this once, since I have no previous knowledge about PBI gateways but I was assigned to a project where I'm supposed to maintain one. Our Client asked us to install npgsql on our VM gateway, so he can connect to his supplier's database (postgresql). I simply installed it on main drive and thought that it should be done (please correct me if I'm wrong). Today he sent me a message that he received error 400. From provided screen I noticed that he is using basic authentication, so my thought is that supplier's DB required OAuth, not basic? But since it takes very long time for them to answer, I would like to be prepared. Is it more access / credentials issue or my installation was a mess?Solved3.2KViews0likes1CommentScheduled Data Refresh Error on Postgres:The PostgreSQL source doesn't support encrypted connections
Hi all, This is my configuration: 1) Power Bi Desktop on my PC 2) Postgressql DB on company server 3) Published report on powerbi online I created some reports and published them on powerbi online. Everythings fine. I want to automatically schedule the data refresh but I have this error The PostgreSQL source doesn't support encrypted connections I'm trying different solution but nothing helped. Can someone help me to find a way to solve? Regards.Solved6.9KViews0likes3CommentsTrouble with PostgreSQL query from Desktop to Web
Hi everyone, I'm having some issues with my PostgreSQL connector. I recently created a database and tables in PostgreSQL, and I've successfully was able to get it to connect to Power BI using a PostgreSQL connector, desktop version. However, as soon as I try to use it online/web, I'm trying to use a Cloud Connection and I get this error, no matter what: Unable to update connection credentials. Unable to connect to the data source. Either the data source is inaccessible, a connection timeout occurred, or the data source credentials are invalid. Please verify the data source configuration and contact a data source administrator to troubleshoot this issue Details: An error happened while reading data from the provider: 'Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)' Please have this information handy if you choose to create a support ticket. ActivityId: 7f515ef6-8778-4665-9abb-ac90534e70da RequestId: a69bc790-4ffa-4900-99a7-980dfab69e85 Cluster URI: https://api.powerbi.com Status code: 400 Time: Sun Sep 10 2023 16:22:48 GMT-0600 (Mountain Daylight Time) I'm not a pro by any means, but I can't figure it out. Any help or guidance is appreciated. Again, no problem accessing my Server and DB from other places including Desktop Power BI, just Web version (app.powerbi.com). Thanks510Views0likes1CommentNeed DAX from PostgreSql query
Hi, This is Alam here, I am sort of new to Power BI and this DAX stuff. Although it is very interesting at the same time i'm getting stuck in certain cases where I am finding any proper resources to solve my problem. I would really appreciate if anyone can help me convert the following PostgreSql query into DAX. The query is: WITH CurrentWeek AS ( SELECT DISTINCT id, sample_requested_by FROM designer_activity_dashboard_view where publish_date >= date_trunc('week', CURRENT_DATE) AND publish_date < date_trunc('week', CURRENT_DATE) + INTERVAL '7 days' ) SELECT sample_requested_by, cuv.name , COUNT(*) AS This_Week_TechPack_Published FROM CurrentWeek JOIN crm_user_view cuv ON CurrentWeek.sample_requested_by = cuv.id GROUP BY sample_requested_by, cuv.name ORDER BY sample_requested_by Would really appreciate your quick response and thanks in advance Sincerely AlamSolved907Views0likes1CommentPower BI refresh fails 90% of the time with postgres ODBC
We are having refresh errors 90% of the time for our reports. Repeatedly refreshing it manually might solve the problem. There are no problems refreshing via powerbi desktop app on the report server. Driver={PostgreSQL ANSI(x64)}; Server=xx.xx.xx.xx; Port=5432; Database=xxx; Connection Timeout=500; SessionID: 0622896a-4188-495f-9aef-57291a069a69 [0] -1055784932: The 'Driver' property with value '{PostgreSQL ANSI(x64)}' doesn't correspond to an installed ODBC driver.. The exception was raised by the IDbCommand interface. [1] -1055129594: The current operation was cancelled because another operation in the transaction failed. [2] -1055784932: The command has been canceled.. The exception was raised by the IDbCommand interface.Solved2KViews0likes3CommentsPostgreSQL- Publish Error
I'm having an issue around published dashboard that connect to PostgreSQL that do not work. From my Power BI desktop, I can connect to PostgreSQL and build a (direct query) viz with no issues. I can even publish and get the "success" window. However, when I go to view the published dashboard, I get an access error about credentials. I have not modified anything on the PostgreSQL/ AWS side, but I'm wondering if there is something outside of Power BI that needs to be modified (maybe ralated to SSL)? Thank you. Thank you in advancedSolved1KViews0likes1CommentPostgreSQL Live Connection Without a Gateway
Hi Everyone, We have a PostgreSQL database on a Linux server. I can easily connect to it with the required credentials from PBI Desktop but naturally(?) not able to perform live connection. My client doesn't allow me to install a gateway on a virtual machine for some reasons. Dataset on the published report returns me this error message: "Your data source can't be refreshed because the credentials are invalid." As I know, there is no way to create a live connection and scheduled refreshes from an on-premises PostgreSQL db without a gateway. Do you have any alternative brilliant idea to get a solution on this case without using a gateway? ps-1: Our dataset is quite tiny so they can replace it from PostgreSQL to anywhere, even to Excel files. ps-2: I've tried both (ODBC drivers and PBI's direct PostgreSQL connection) Thanks a lot. CuneytSolved2.8KViews0likes2CommentsCannot connect on-premise gateway with postgres on PowerBI
With powerbi desktop I can easily connect with postgres database on server(192.168.1.5:32100) running on a port and a database_name. But doing the same with PowerBI on premise gateway I could not connect when adding a data source on gateway setting(gateway cluster). Below screenshot for reference. The first picture is of PowerBI desktop and the second one is on gateway settings. Is it something with the port?If yes I was able to connect on PowerBI desktop, if no then is there any way or am I missing something. Thanks in advance for the help.748Views0likes1CommentMultiple Username for Postgresql
Hope PowerBi team can consider for this idea, usually we connect more than one username and different schema also for postgresql, right now when we connect, its automatically saved for the last one, and while we wanna keep connect this two schema with diffrent username is hard to do it right now please help2.5KViews0likes0Comments