leading up to the launch of our power bi foundations for project controls course, in this post, i will show you how to create a power bi cashflow report. managing project costs efficiently is crucial for keeping complex projects on track and within budget. primavera p6 offers robust tools for assigning and tracking costs across timelines, but translating this data into actionable, visual insights can sometimes be a challenge. i will walk you through the process of exporting cost data from primavera p6 into excel and then into power bi. by leveraging these tools, you’ll be able to transform raw cost data into dynamic cashflow reports, helping you make data-driven decisions with ease and precision.
download your project files here
exporting data from primavera p6 to excel
- ensure cost-loaded schedule: confirm that your primavera p6 schedule has all necessary costs assigned.
- export resource assignment data: navigate to resource assignment, select all data, and copy it into an excel sheet.
- configure export settings:
- group & sort: set to “none”
- spreadsheet field: choose “budgeted cost”
- filters: omit filters if only costs are assigned
- columns: include “activity id,” “activity name,” and “resource id”
- select resource assignment data: in the resource assignment layout, select all relevant data for export.
- copy and paste to excel: copy the selected data from primavera p6 and paste it directly into an excel sheet for further use.
- save the excel file: after pasting the data, save the excel file in a designated location for easy access during power bi import.
exporting data from excel to power bi
- open power bi: start by opening a blank report in power bi.
- import excel workbook: in the home tab, go to get data > excel workbook, and select your saved excel file.
- transform data: click on transform data to open the power query editor.
- verify data in power query editor: review the imported data in power query editor to ensure it aligns with your reporting requirements.
- clean up data: in power query editor, delete any unnecessary rows and columns that contain no data.
- set headers: under the home tab, select use first row as headers to make the first row of your data the header row.\
- unpivot columns: select the columns activity id, activity name, resource id, and spreadsheet field. then, under the transform tab, click on unpivot other columns to restructure your data for better analysis and reporting.
- adjust data types and rename columns: assign the appropriate data type to each column (e.g., date, text, number) to ensure data consistency. rename columns as needed for clarity and ease of use in reporting.
- apply changes: in the home tab, click on close & apply to load the transformed data into power bi.
- choose visualization type: in the report view, select the line & clustered column chart from the visualization pane.
- set chart axes: drag date into the x-axis and total cost into the y-axis (columns) to visualize your cashflow over time.
- format the chart: after adding dates and total cost, customize the chart’s appearance by adjusting colors, labels, legends, and other formatting options to suit your preferences and improve readability.
now you know how to use excel as an intermediary between primavera p6 and power bi enables the creation of comprehensive, dynamic, and accurate reports. this process facilitates seamless data transfer and allows for advanced visualization and analysis of project cashflow data in power bi. dive deeper into visualization in power bi and more in our power bi foundations for project controls on-demand course.