Table of Contents

Deployment of Altus Power BI Reports

This deployment document outlines the step by step process for deploying the Altus Power BI reports.

  1. As a first step download and extract a zip file containing all the templates and reports to your local computer.
    The required files can be sourced from: Download ⬇️

  2. You will run a Powershell script to customise the deployment files with the clients target environment. The Powershell script to be run “Update Database name in JSON Files.ps1” can be found in the Dataflows folder as shown below.

    Deployment powershell script file

    The command to run the script can be found as a comment in the top line of the script file. Either use Windows Command Prompt or Powershell to execute this script.

    1. Adjust the folder path with the dataflows folder path. This is the full folder path that contains this PowerShell script. Copy this from the windows explorer path address.

      powershell.exe -ExecutionPolicy Bypass -File "C:\Power BI Reports Setup\Dataflows\Update Database name in JSON Files.ps1"
      
    2. Enter the database name as shown below: Eg: orgb364829e
      Organisation identification code

    3. Leave the replacement database name as blank
      The script will update the database name to the clients database name in all dataflows.

  3. A new folder with the updated dataflows is created as shown below - with the database name previously entered appended.

    Deployment organisation folder

  4. Create a new workspace for the Altus Power BI Reports as shown below. Make sure you’re using the clients account or your admin account to login to Power BI service.

    Deployment worksapce

  5. Create new dataflow for each of the dataflows from the newly created dataflows folder.

    Deployment dataflows

    Import dataflow

    Import each of the 15 dataflows individually.

    • Dim_ChartofAccounts.json
    • Dim_Date.json
    • Dim_Projects.json
    • Dim_Resources.json
    • Dim_System_Users.json
    • Dim_Task.json
    • Dim_Timesheet.json
    • Fact_Calender_Excpetion.json
    • Fact_Change_Request.json
    • Fact_Decision.json
    • Fact_Deliverables.json
    • Fact_Financial_Transactions.json
    • Fact_Issue.json
    • Fact_Lesson_Learned.json
    • Fact_Risk.json
  6. If your organisation region is different to crm6 (the default). Open each of the dataflows by clicking on edit and then change the domain name to your organisations region. Update the region of the domain name and save and close as shown below.

    Edit deployment dataflow

    Click on the edit icon located under the Actions column.

    Edit deployment dataflow

    Edit the region details.

    Set deployment region

    Click on Save & Close.

    Save deployment settings

    Do this for each of the dataflows.

  7. Refresh each of the dataflows by selecting the refresh option display next to each of the dataflows.

    Refresh dataflow

  8. If any of the dataflows throw an error edit the credentials to pick the correct credentials that you have used to log in to Power BI with previously. To view the credentials open the Settings when viewing the options (...) for a dataflow.

    Set dataflow credentials

  9. If there is a warning displayed next to the dataflow on refresh or when viewing the credentials in the settings like below

    Dataflow credentials warning

    Dataflow cedentials

    You will need to re-enter your credentials. Eg.

    Deployment connection

    Deployment privacy settings

  10. Next, update the refresh schedule for each data flow except for the DimDate dataflow to hourly, starting from 8:30am until 3:30pm. Ensure you set the correct Time zone.

    Note

    The Dim_Date dataflow only needs to be refreshed once a week. Set that to every Monday at 8:30am. Ensure you set the correct Time zone.

    Display the refresh schedule

    Edit the refresh schedule

  11. Next, we are going to load data into the Model templates and publish them to the newly created workspace.

  12. Open Power BI desktop and login with the account you connect to client’s environment or your own admin account if its your environment.

  13. Make sure you clear out any previous Data source settings by navigating to File | Options & Settings | Data source settings. Select all of the Global permission settings defined and select Clear Permissions and Close.

  14. Open Work Model.pbit file from the Power BI Reports Setup / Models deployment folder as shown below:

    Import model

    1. Enter your Database and Workspace id from your newly created workspace in Power BI service.
      By passing the workspaceid parameter the dataflow ids will automatically be updated inside the models. Therefore Power Apps Solution file is not required anymore which was done previously.
      Eg: orgb364829e under Database then workspaceid Eg: "63edf77a-1f22-4ce6-9302-7c7d312312dd"
      Then click on dropdown next to Load then choose Edit option.

      Workspace Parameter

    2. Update the domain name based on your environment.

      Edit import model domain nam

    3. Then update the Data source settings with the clients account or your own admin account.

      Data Source Settings

      Database Settings

      Select Microsoft Account and enter the deployment account credentials

    4. Then select the menu option File | Close and Apply. It will update the domain name and refresh the tables with your environments data. It will ask several times to sign in and then sign in with your admin account.
      Import model connection

    5. Once the tables are all refreshed then go to File – Options and Settings – Options and then Data Load and change the parallel loading of tables to default. Initially for the models to load the data it would have been chosen as One (disable parallel processing). The default parallel processing needs to be chosen.

      Parallel loading option

    6. Save as Work Model.pbix file in the same folder.

    7. Publish it to the workspace you previously created.

    8. Do this for all 4 models – Portfolio, Resource,Strategy and Work models.

  15. Refresh all the datasets in Power BI and if it throws an error then edit the credentials with your clients or your admin account.

  16. Navigate to the Reports folder as shown below:

    Import model connection

    The Portfolio Intake and Resources reports use the Resource model. Open each of the reports and when an error is displayed as unable to connect click on edit and choose the right model.

    Import reports

    Associate report with model

    Strategy report uses the Strategy model,
    Work report uses the Work model.
    Portfolio Innovation, Portfolio and Projects reports use the Portfolio model.
    Follow the same step as above and publish all the reports to the workspace in Power BI like the models.

  17. If the report does not refresh and if there is a connectivity issue fix the credentials to match your clients account or your own admin account.

  18. Once complete, the next step is to embed the Power BI reports into your Altus app.

  19. To embed you will need to update the environment variables for each of the reports.

    Below variables need to be updated.

    A screenshot of a computer Description automatically generated

  20. To update, navigate to your Altus App and open SettingsConfiguration settingsPower BI Environment Value

    Altus report configuration settings

    If you cannot find the Power BI Environment Value option, select Inactive config settings from the Configuration settings drop down option and make it activate.

  21. Once the Power BI Environment Value is displayed, enter the values as shown below as highlighted.

    Altus report configuration settings

  22. Find and enter the Id of the Power BI group as shown below:

    Power Bi Group Id

    Find and enter the Name of the Power BI group as shown below:

    Power BI Group Name

    For the Id of the Power BI report open the Power BI report inside the Power BI workspace and copy the Id of the report from the URL as shown below:

    Power BI Id

    For name of the Power BI report copy the name as shown below:

    Power BI Name

    Then once you paste all the highlighted items click on edit json curly symbol as shown below

    Show code

    Show deployment code

    Copy the value and paste all the highlighted items to the environment variables like shown below:

    Insert code

    If its Portfolio report, then paste it under Altus Portfolio in PowerApps page.

    Do this for all the 7 environment variables and refresh the app and you should be able to view all the reports.