Forum Discussion

ianmelb99's avatar
ianmelb99
New Member
9 years ago
Solved

Historic open claims

Hi, I am new to Dax and having a problem calculating historic open claims report. I have  a fact table of insurance claims. Each row is a unique claim record number and includes a date opened and d...
  • ianmelb99's avatar
    ianmelb99
    9 years ago

    Adam,

    Thanks for your comments. Makes more sense now.

    I have soved it by

    - creating a fake closedate column in my claims table which is the actual close date for closed claims and today for open claims.

    - creating a date table called OpenClaims and linking it to the open date in the claims claims table.

    - in my new date table I created a calculated column using

     

    OpenClaimsCount = COUNTROWS(FILTER('ClaimsTable','ClaimsTable'[Date Claim Entered]<='OpenClaims'[Date]&&'ClaimsTable'[FakeCloseDate]>='OpenClaims'[Date]))

     

    My OpenClaims table now has a number of open claims for every date

     

    I can now report at a day granular level or average for week etc.

     

    Slowly getting my head around DAX - Phew..