Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I was wondering if someone could please assist with the following.
I currently have the following DAX to calculate no. of documents overdue :
@AMBP1973 , To calculate number of documents overdue you can use measure
First make sure you have a date table
Then
Documents Overdue =
CALCULATE(
COUNTROWS('E&T Document Status Tracker'),
FILTER(
'E&T Document Status Tracker',
NOT(ISBLANK('E&T Document Status Tracker'[Cancellation Date])) &&
'E&T Document Status Tracker'[Cancellation Date] < TODAY() &&
(
ISBLANK('E&T Document Status Tracker'[Approval Date]) ||
'E&T Document Status Tracker'[Approval Date] > 'E&T Document Status Tracker'[Cancellation Date]
)
)
)
To calculate variance you can create another measure
Documents Overdue Current Month =
CALCULATE(
[Documents Overdue],
DATESINPERIOD('Date'[Date], MAX('Date'[Date]), -1, MONTH)
)
Documents Overdue Previous Month =
CALCULATE(
[Documents Overdue],
DATESINPERIOD('Date'[Date], MAX('Date'[Date]) - 1, -1, MONTH)
)
Variance =
[Documents Overdue Current Month] - [Documents Overdue Previous Month]
Proud to be a Super User! |
|
Hello @bhanu_gautam ,
Thankyou for the measures you have provided, much appreciated. I created a Date Table = CALENDARAUTO() to include in these, however I am not getting any results in any visuals or a table?
However, I am not
Apologies, seems as though the message didn't come through properly.
Further to the above, I am not getting any results in any visuals or a table? Here is the measures I have created with the above date table:
Hi, @AMBP1973 As I can understand, that you want to calculate number of overdue document and compare with in various time point. If this is the case, I want to share my point of view.
You need 3 column in your table, document submission date, due date, and approval date. If any document approved after due date will be considered over due. You can use filter function to evaluate this as you have done already.
Another case is, if any document not approved yet and current date passed the due date will be considered overdue.
Once you evaluate no of overdue document, then you can compare between various time point.
Hope this helps!!
If this solved your problem, please mark it as a solution!!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |