Forum Discussion
Calculating completion % based on expiry dates
- 1 year ago
I think I only find 3 ID for the first one.
you can try this
Measure = DIVIDE(CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Expiry Date]>=date(year(today())+1,4,1))),DISTINCTCOUNT('Table'[Property_ID]))for the second one ,you can try to create a column,late num =var _next=minx(FILTER('Table','Table'[Property_ID]=EARLIER('Table'[Property_ID]) && 'Table'[Issue_Date]>EARLIER('Table'[Issue_Date])),'Table'[Issue_Date])return if (_next>'Table'[Expiry Date],1)pls see the attachment below
not clear about the logic.
Has a current in-date certificate (an issue date for the next financial year) = 4
what is the period for next year?
and for the second one, how to define properties due?
Hi ryan_mayu ,
"Has a current in-date certificate (an issue date for the next financial year) = 4"
This is for the current financial year running 1st April - 31st March. It takes into consideration the total number of properties that have gas safety checks expiring this year, and the number of properties that have completed them so far.
What is the period for next year?
Currently in financial year 25/26, next is 26/27
and for the second one, how to define properties due?
A property is "due" when it reaches the expiry date.
If the date of the next Issue goes past the previous expiry date it is classed as being late
For example, the certification due on 01/09/2024 was on time as the next one was input the same day, and is now valid for 1 year..
| 1 Sacramento Dr | 01/09/2023 | 01/09/2024 | Gas Safety |
| 1 Sacramento Dr | 01/09/2024 | 01/09/2025 | Gas Safety |
In this example, the due date for the new certification was 01/09/2024 but the new one was uploaded 11/09/2024, so it's classed as being late.
| 1 Sacramento Dr | 01/09/2023 | 01/09/2024 | Gas Safety |
| 1 Sacramento Dr | 11/09/2024 | 01/09/2025 | Gas Safety |
I hope this helps? Please let me know if I can give you any more info
Thanks
- ryan_mayu1 year agoSuper User
I think I only find 3 ID for the first one.
you can try this
Measure = DIVIDE(CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Expiry Date]>=date(year(today())+1,4,1))),DISTINCTCOUNT('Table'[Property_ID]))for the second one ,you can try to create a column,late num =var _next=minx(FILTER('Table','Table'[Property_ID]=EARLIER('Table'[Property_ID]) && 'Table'[Issue_Date]>EARLIER('Table'[Issue_Date])),'Table'[Issue_Date])return if (_next>'Table'[Expiry Date],1)pls see the attachment below