Planning Analytics

Planning Analytics

Get AI-infused integrated business planning

 View Only
Expand all | Collapse all

connection to Planning anlytics cubes from Power BI

  • 1.  connection to Planning anlytics cubes from Power BI

    Posted Wed May 03, 2023 04:17 PM

    Hello Friends,

    We are trying to make a connection to planning analytics cubes from POWER BI. I didn't have much luck online. Probably someone has already tried this and could shed some light on how to do this. Appreciate anyone could help.

    Thanks,
    Ravi



    ------------------------------
    Ravi Kotha
    ------------------------------


  • 2.  RE: connection to Planning anlytics cubes from Power BI

    Posted Thu May 04, 2023 02:15 AM

    Hi Ravi,

    The best is to leverage TM1Py to do this for you. You will need to do some research into personal gateways too.
    We have managed to pull master data with hierarchies, and data via MDX views using TM1Py functions.

    Alternatively, there are some commercial connectors out there, each with their own pros and cons.



    ------------------------------
    George Tonkin
    Business Partner
    MCI Consultants
    Johannesburg
    ------------------------------



  • 3.  RE: connection to Planning anlytics cubes from Power BI

    Posted Thu May 04, 2023 04:31 AM

    As George said TM1Py is a good start  - there is a blog post here Power BI from TM1 (and a step by step guide here)

    You do need to think about how you want security to be imposed one the data leaves Planning Analytics but this gets you most of the way.

    Ian



    ------------------------------
    Ian Boltz
    ------------------------------



  • 4.  RE: connection to Planning anlytics cubes from Power BI

    Posted Thu May 04, 2023 09:36 AM

    Hi Ravi,

    +1 for George's suggestion as this is the easiest way.

    If you are looking to use native PowerBI functionality then I can recommend this YouTube video, featuring Hubert Heijkers and Christoph Hein.  

    It shows how to get around some of the limitations in PowerBI in terms of the built-in Web connector:
    https://www.youtube.com/watch?v=fJi-xvM--0U

    This is the code referenced in the video:
    https://blog.powp.co/my-power-query-web-contents-cheat-sheet-6a5bbfdce5eb

    Hope this helps.





    ------------------------------
    Rod Jager
    ------------------------------



  • 5.  RE: connection to Planning anlytics cubes from Power BI

    Posted Thu May 04, 2023 01:31 PM

    Thanks Rod. I have looked into this video and tried the api format, but it didn't work for me.



    ------------------------------
    Ravi Kotha
    ------------------------------



  • 6.  RE: connection to Planning anlytics cubes from Power BI

    Posted Thu May 04, 2023 08:10 PM

    Hi Ravi,

    As some further background, to replicate the video you need to be using PowerBI Desktop (PBI) and Planning Analytics Local (PA).  

    When I replicated the results in the video I had to disable SSL in the tm1s.cfg file and use TM1 as the authentication provider.  You can get the process to work using SSL and with other authentication methods, but there is a lot more work.

    Below is a basic PBI query that works against the pnlcube in the SData database that can be installed from the examples provided with PA.  
    Note you will need to create the two parameters (Username and Password) in the PBI query and update <tm1server> with your server name and maybe change 8010 to match your httpportnumber value from tm1s.cfg.

    As other posts note, there are currently easier ways to do this such as staging the data in a relational database using the PA API, using a third party solution such as TM1PY or even using TurboIntegrator to push the data out in flat file or into a relational end point.


    let
        #"Header" = Binary.ToText(Text.ToBinary(Username&":" & Password)), /*  This allows feeding through paramater values - need to then set PBI data connection to anonymous */
        #"BaseURL" = "http://<tm1server>:8010/api/v1/Cubes('pnlcube')/Views('view1')/tm1.Execute?$expand=Axes($expand=Hierarchies($select=Name),Tuples($expand=Members($select=Name))),Cells", 
    
    content =
            "{
    
            }"
         ,
    Source = Json.Document(
            Web.Contents(
                #"BaseURL",
                [
                    Headers=[
                            #"Authorization" = "Basic " & #"Header",
                            #"content-type" = "application/json"
                    ],
                    Content=Text.ToBinary(content)
                ]
                )
        )
    in
        Source






    ------------------------------
    RodJ
    ------------------------------



  • 7.  RE: connection to Planning anlytics cubes from Power BI

    Posted Mon May 15, 2023 06:22 PM

    Hi Ravi, the Cubewise team has been patiently waiting to share this awesome update regarding PA -> PBI integration with you for the last few days... and here it is, PowerConnect https://code.cubewise.com/powerconnect-overview  and https://code.cubewise.com/powerconnect-features and https://code.cubewise.com/powerconnect-help



    ------------------------------
    James Downey
    ------------------------------



  • 8.  RE: connection to Planning anlytics cubes from Power BI

    Posted Thu May 04, 2023 10:32 AM

    Hi Ravi,

    I played around with this pretty extensively about a year ago. The approach I took was building functions that you could then pass parameters to (dimension/hierarchy names, MDX queries for views, view names) which would then hit REST API endpoints, parse the returned JSON into a tabular structure (so you'd need to ensure that you come up with a standard methodology for building Dim and Fact tables).

    I stopped because the performance was AWFUL and decided it was actually faster and easier to just pull and parse from the REST API into SQL Server and then build the PowerBI model off of tables in the server.

    The issue is less with PA itself I think, and more with PowerBI being a sub-optimal choice for parsing large JSON files. I suspect part of the problem is also my inexperience with using PowerBI to do that sort of thing. Might be worth broadening your investigation to more general "how to optimally handle REST API/JSON in PowerBI" and then adapt things to the PA-specific shapes of the data.

    Cheers,
    Tom



    ------------------------------
    Tom Cook
    ------------------------------



  • 9.  RE: connection to Planning anlytics cubes from Power BI

    Posted Fri May 05, 2023 10:17 AM

    Hi, Ravi - I might have an easier / faster approach than DIY with TM1py. Please contact me directly at jpusztai@cubewise.com if you are interested.



    ------------------------------
    Joseph Pusztai
    ------------------------------



  • 10.  RE: connection to Planning anlytics cubes from Power BI

    Posted Mon May 08, 2023 04:44 PM

    Hi Ravi.  I wanted to also let you know that we have a product called TM1Connect that may be of interest to you.  It allows you to easily consume TM1 data via a standard ODBC connection without having to write any code/script whatsoever.  Please visit www.TM1Connect.com to find the details about the product.  Please let me know if you have any questions or would like to setup a quick demo.  Thanks!



    ------------------------------
    Alex Gladsteyn
    ------------------------------



  • 11.  RE: connection to Planning anlytics cubes from Power BI

    Posted Fri May 12, 2023 03:52 PM
    Edited by Joseph Pusztai Fri May 12, 2023 03:53 PM

    Ravi, please have a look at PowerConnect - Cubewise CODE

    Cubewise CODE remove preview
    PowerConnect - Cubewise CODE
    PowerConnect supports On-premises, Cloud, and Hybrid Cloud multi-instance configurations ensuring compatibility with all IBM Planning Analytics deployment options, including those on IBM Planning Analytics on Cloud. Plus, PowerConnect supports Microsoft Power BI Desktop, Microsoft Power BI Service, and any mobile device installed with the Microsoft Power BI app.

     While it's 100% true that you can "DIY" a TM1-PBI connection with TM1py, our pre-built PowerConnect solution is a much easier, and likely lower TCO, way to to go. Please get in touch if you would like to learn more!



    ------------------------------
    Joseph Pusztai
    ------------------------------



  • 12.  RE: connection to Planning anlytics cubes from Power BI

    Posted Thu June 08, 2023 10:03 AM

    Hi Ravi, 

    You can check out TMVGate!

    Connect TM1 to Power BI within 15 minutes, lifetime license, all your data on your premises, lowest TCO among all. Longest established solution in the market since 2015, tried and tested with scheduled data pulls massive view sizes (500MB++ per view)

    This innovative solution has already proven its value to our global customer base, spanning from Australia to the UK, impressing them with its ease of implementation and out-of-the-box functionality. 

    To witness TMVGate in action, check out our demonstration video on YouTube:

    https://www.youtube.com/watch?v=LpK4TLz1fGE

    Visit our comprehensive YouTube Channel: https://www.youtube.com/@itlinksupport1657

    For more insights into TMVGate, feel free to reach us at: info@itlink.com.sg.



    ------------------------------
    Lauren Chong
    ------------------------------