How To Calculate Overdue Days In Power Bi

How to Calculate Overdue Days in Power BI

In Power BI, you can calculate the overdue days using DAX formulas and measures. Here is a step-by-step explanation with examples:

  1. Create a new measure to calculate the difference between the current date and the due date. This can be done using the DATEDIFF function:
  2. Overdue Days = DATEDIFF([Due Date], TODAY(), DAY)

    In this example, “Due Date” is the column containing the due date values.

  3. Next, create another measure to determine if a task is overdue or not. This can be done using an IF statement:
  4. Overdue = IF([Overdue Days] > 0, "Overdue", "Not Overdue")

    This measure will return “Overdue” if the “Overdue Days” value is greater than 0, and “Not Overdue” otherwise.

  5. To visualize the overdue days, you can use a table or a column chart. Add the necessary fields to the table/chart, such as the task name, due date, and the “Overdue Days” measure.
  6. Here is an example of a table in Power BI:

    Task Name Due Date Overdue Days
    Task 1 2021-01-10 5
    Task 2 2021-02-15 -10
    Task 3 2021-03-01 0

    In this example, “Task 1” is 5 days overdue, “Task 2” is not overdue (due date is in the future), and “Task 3” is not overdue (due date is today).

By following these steps and using the appropriate DAX formulas, you can calculate the overdue days in Power BI and visualize the results in a table or chart.

Related Post

Leave a comment