Forum Discussion

RichOB's avatar
RichOB
Post Partisan
1 year ago
Solved

Calculating completion % based on expiry dates

Hi, I need some help working this brain teaser out, please.  FYI **Table at bottom. Financial Year runs 1st April - 31st March** I have a property company with 6 locations, and I conduct a variety...
  • ryan_mayu's avatar
    ryan_mayu
    1 year ago

    RichOB 

    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