Forum Discussion
Tracking data changes on monthly basis
To create a table or matrix in Power BI that tracks changes to a spreadsheet connected to SharePoint, you can follow these steps:
Connect to the SharePoint folder where the spreadsheets are stored in Power BI Desktop.
Import the spreadsheet into Power BI by selecting the appropriate file and sheet.
In the "Fields" pane, drag the project column to Rows, and drag the spend column to Values.
In the "Visualizations" pane, select either "Table" or "Matrix" as per your preference.
Drag the "Month" column to Columns.
You should now see a table or matrix with the spend values for each project for each month. To see the difference in spend between months, you can add a calculated column using the "New Column" option in the "Modeling" tab.
In the formula bar, enter the following formula:
Monthly Spend Difference = CALCULATE(SUM(Sheet1[Spend]), FILTER(Sheet1, Sheet1[Project] = EARLIER(Sheet1[Project])))
This formula will calculate the difference in spend between the current month and the previous month.
Add the "Monthly Spend Difference" column to the table or matrix and format it as needed.
Now you should have a table or matrix that shows the spend values for each project for each month and the difference in spend between the current and previous month.