Forum Discussion

gantwanc's avatar
gantwanc
Frequent Visitor
2 years ago

Using Postgres as a data source and create mutli value selection in power builder

Hello,

I am working on creating a paginated report using Power Builder to give our end users the ability to filter datasets and schedule Excel files to their inbox using the Power BI service. Right now, I can use SQL Server to create a parameter with multi-select capabilities. When I try to use our Postgres database I get the following error.


Cannot add multi value query parameter '?' for dataset 'ds_con_events' because it is not supported by the data extension.
----------------------------
An error has occurred during report processing.
----------------------------
An error occurred during local report processing.

What is the step-by-step process to connect to a Postgres database and create a parameter that allows mutli select filtering options in a paginated report?

6 Replies

    • gantwanc's avatar
      gantwanc
      Frequent Visitor

      Anonymous Hello, Please see more details below:

      1. I am connecting to an ODBC connection type using an Amazon Redshift driver as a connection string

      2. Within the query I use a ? next to the where clause to be able to use the parameter. This was the only way I was able to get the parameters to work using a ODBC connection type. for SQL server I use  @ and I am able to select multiple filters. 

            The query is select multiple fields from table where market in ? (This is the parameter symbol)
      3. The parameter properties are the same as the below screenshot:

      4. when I try to test the report I am trying to select multiple years or markets. The below case is the markets:

      5. When I run the view I get the below error message:

       

      What is the best way to allow multiple selections using a ODBC connection? 

    • gantwanc's avatar
      gantwanc
      Frequent Visitor

      Anonymous The documentation seems to be geared towards SQL Server. I was wondering how to do the same thing connecting to ODBC. Is there any documentation that shows how to connect to other databases besides SQL Server? 

      • gantwanc's avatar
        gantwanc
        Frequent Visitor

        Anonymous Here is another screenshot: