Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

DAX Measure Error

Hi Experts 

 

I am trying to exlcude the "Surgery completed", "Procedure completed"  from the measure below?

 

WHO - All Assessments Created = CALCULATE(COUNTROWS(Theatre_List_Cashup_Status_Monitoring), FILTER(Theatre_List_Cashup_Status_Monitoring, Theatre_List_Cashup_Status_Monitoring[WHO_Sign_In] = 0 && Theatre_List_Cashup_Status_Monitoring[WHO_Sign_Out] = 0 && Theatre_List_Cashup_Status_Monitoring[WHO_Time_Out] = 0 && Theatre_List_Cashup_Status_Monitoring[OperationOutcome] <> {"Surgery completed", "Procedure completed"}))
1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

Please try this:-

WHO - All Assessments Created =
CALCULATE (
    COUNTROWS ( Theatre_List_Cashup_Status_Monitoring ),
    FILTER (
        Theatre_List_Cashup_Status_Monitoring,
        Theatre_List_Cashup_Status_Monitoring[WHO_Sign_In] = 0
            && Theatre_List_Cashup_Status_Monitoring[WHO_Sign_Out] = 0
            && Theatre_List_Cashup_Status_Monitoring[WHO_Time_Out] = 0
            && NOT ( Theatre_List_Cashup_Status_Monitoring[OperationOutcome] )
            IN { "Surgery completed", "Procedure completed" }
    )
)

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

1 REPLY 1
Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

Please try this:-

WHO - All Assessments Created =
CALCULATE (
    COUNTROWS ( Theatre_List_Cashup_Status_Monitoring ),
    FILTER (
        Theatre_List_Cashup_Status_Monitoring,
        Theatre_List_Cashup_Status_Monitoring[WHO_Sign_In] = 0
            && Theatre_List_Cashup_Status_Monitoring[WHO_Sign_Out] = 0
            && Theatre_List_Cashup_Status_Monitoring[WHO_Time_Out] = 0
            && NOT ( Theatre_List_Cashup_Status_Monitoring[OperationOutcome] )
            IN { "Surgery completed", "Procedure completed" }
    )
)

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.