IBM i Global

IBM i Global

Connect, learn, share, and engage with IBM Power.

 View Only
  • 1.  MS Power BI

    Posted Tue October 31, 2023 09:54 AM

    Has anyone had experience getting Microsoft Power BI to work with the IBM i? Can you provide any tips?



  • 2.  RE: MS Power BI

    Posted Wed November 01, 2023 02:54 AM

    Hi ! Yes we use it in my company.

    you can use the oledb driver Or the odbc driver that can be downloaded from « access client solution » download page.

    If you use oledb, you can use the db2 driver from powerbi data sources. I had some problems with this.

    I prefer using odbc which is more convenient to configure, I didn't find any limitations 

    I hope it helps



    ------------------------------
    Andy Malo
    CAFAT
    New-Caledonia
    ------------------------------



  • 3.  RE: MS Power BI

    Posted Wed November 01, 2023 11:36 AM

    Thank you Andy. I was able to get the ODBC connection working. My boss (who has little IBM i experience) has specified we should make this connection using a "read-only" user. I've never heard of such a thing on the IBM i. Don't really know how I'd do that. We are not doing any kind of granular security on our i. I wonder if ODBC is already read only by definition?

    Hi ! Yes we use it in my company.

    you can use the oledb driver Or the odbc driver that can be downloaded from « access client solution » download page.

    If you use oledb, you can use the db2 driver from powerbi data sources. I had some problems with this.

    I prefer using odbc which is more convenient to configure, I didn't find any limitations 

    I hope it helps

    Andy Malo,  Wed November 01, 2023 02:53 AM



    ------------------------------
    Elden Fenison
    ------------------------------



  • 4.  RE: MS Power BI

    Posted Wed November 01, 2023 10:16 PM
    Edited by Satid Singkorapoom Wed November 01, 2023 10:18 PM

    Dear Elden

    You can set the "read-only" attribute in IBM i Access ODBC Setup:  Server tab --> Connection Type attribute as shown below.  This attribute has been around since very early ODBC driver from AS/400 time.



    ------------------------------
    Chance favors only the prepared mind.
    -- Louis Pasteur
    ------------------------------
    Satid S.
    ------------------------------



  • 5.  RE: MS Power BI

    Posted Wed November 01, 2023 10:37 PM

    Hi

    thank you @Satid :)

    For your information @Elden, interfaces in ODBC, JDBC, oledb are not configured by default as readonly when you installed your driver. You have to configure your connexions through properties of your choosen interface. If you want to be full secure, you can create a readonly user.

    But with powerbi or excel, you don't need to configure this as a readonly because you only have to do "select" statements.

    Hope it helps,

    Have a good day

    PS : you should come in slack channel, somebody asks the same questions 1week ago :) 



    ------------------------------
    Andy Malo
    CAFAT
    New-Caledonia
    ------------------------------



  • 6.  RE: MS Power BI

    Posted Thu November 02, 2023 04:34 PM

    Yes. I was aware of that setting. But wouldn't the user be able to simply change that setting?

    You can set the "read-only" attribute in IBM i Access ODBC Setup:  Server tab --> Connection Type attribute as shown below.  This attribute has been around since very early ODBC driver from AS/400 time.
    Satid Singkorapoom,  Wed November 01, 2023 10:16 PM





    ------------------------------
    Elden Fenison
    ------------------------------



  • 7.  RE: MS Power BI

    Posted Thu November 02, 2023 10:09 PM
    Edited by Satid Singkorapoom Fri November 03, 2023 12:00 AM

    Dear Elden

    >>>>  Yes. I was aware of that setting. But wouldn't the user be able to simply change that setting?  <<<<

    In the world of Windows, you can deploy what is called Windows group policy that prevents users from making such a change (or to require a password to allow for a change) - not just for ODBC parameter but for any other areas in Windows clients as well.  Please consult a Windows system admin expert on this matter.



    ------------------------------
    Chance favors only the prepared mind.
    -- Louis Pasteur
    ------------------------------
    Satid S.
    ------------------------------



  • 8.  RE: MS Power BI

    Posted Thu November 02, 2023 09:58 AM

    If you need additional parametrization of the ODBC connection (whether DSN or DNS-less via string or not), you can refer to this link, it works for other platforms too (ODBC.ini like PASE or *nix).

    https://www.ibm.com/docs/en/i/7.4?topic=details-connection-string-keywords

    A common thing working with BI tools is to let the driver directly trim spaces (trimchars) of fixed char columns for example...



    ------------------------------
    --ft
    ------------------------------