Status Date Reporting in Power BI

Dominic Moss 56 Reputation points
2021-02-01T10:46:25.597+00:00

Has anyone here used the Status Date in Power BI Reporting? I am looking to drive the quality of data in our plans and have created a Power BI report that covers various quality metrics. One of the things I want to measure is how out of date Status Dates are in Projects - we currently check for projects without a status date but those that have a status date often have not updated it in a while so I am looking for a Date Difference Calculation - I have taken a look at the Power BI forum but cannot get the solutions suggested to work for me - not sure if I need to create a new column in Power Query Data Transformation of if I need to create new measure calculations in the PBI App.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,794 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mohammad Majed Asad 155 Reputation points
    2023-05-10T10:46:16.38+00:00

    To calculate the date difference between the current date and the status date of projects in Power BI, you can create a new column in the Power Query Editor. Here are the steps:

    1. Open the Power Query Editor in Power BI Desktop by selecting 'Transform data' in the Home tab.
    2. Select the Projects table in the left-hand pane.
    3. Select the 'Add column' tab in the ribbon, and then select 'Custom column'.
    4. In the 'Custom column' dialog box, give the column a name such as 'Status Date Difference'.
    5. In the 'Custom column formula' box, enter the following formula:
    Status Date Difference = 
        if [Status Date] <> null then 
            Duration.Days(DateTime.LocalNow() - [Status Date]) 
        else 
            null
    
    

    Note: Replace 'Status Date' with the name of the column that contains the status dates in your Projects table.

    1. Click 'OK' to create the new column.

    This will create a new column in your Projects table that shows the number of days between the current date and the status date. You can then use this column to create a measure or visualization that displays the date difference.

    For example, you can create a measure that calculates the average number of days between the current date and the status date of all projects:

    1. Select the 'New measure' tab in the ribbon.
    2. Enter a name for the measure, such as 'Average Status Date Difference'.
    3. In the 'Formula bar', enter the following formula:
    javascriptCopy code
    Average Status Date Difference = AVERAGE(Projects[Status Date Difference])
    

    Note: Replace 'Projects' with the name of your table, and 'Status Date Difference' with the name of the column you created in the previous steps.

    1. Click 'OK' to create the measure.

    You can then add this measure to a visualization such as a table or a card to display the average date difference.

    0 comments No comments