Forum Discussion

jbeans's avatar
jbeans
Frequent Visitor
2 years ago
Solved

Matrix not summing / measure not working as expected

Hi All    I have the below DAX that is working as expected (it appears). It is checking the earliest finished date and if it meets certain criteria assigns a value of 1. If not 0.    I have this ...
  • jbeans's avatar
    jbeans
    2 years ago

    Anonymous lbendlin 

    The below worked for me to retrieve the earliest date and if column is blank assign 1 else 0, leaving the code here in case anyone else comes across this post 

     

    Thanks for looking in to this issue for me 

     

    Measure RFT LOC = 
    
    SUMX(
        'lnd AWComponentLibraryApproval',
        IF(
            'lnd AWComponentLibraryApproval'[Reason_for_rejection] = BLANK() &&
            'lnd AWComponentLibraryApproval'[Approver_Role] = "LOC REVIEWER / APPROVER" &&
            'lnd AWComponentLibraryApproval'[Approval_finish_date] = CALCULATE(MIN('lnd AWComponentLibraryApproval'[Approval_finish_date]), 
                ALLEXCEPT('lnd AWComponentLibraryApproval', 'lnd AWComponentLibraryApproval'[AW_Order_ID])),    
            1,
            0
        )
    )