Forum Discussion

i820017's avatar
i820017
Resolver II
3 years ago
Solved

Measure with Filter Question

I have 2 measures as seen below. % Of Completion = DIVIDE(SUM('ops vw_SurveyDetails'[Survey Completion]), [Survey_Count]) % of Completion w/out = CALCULATE(DIVIDE(SUM('ops vw_SurveyDetails'[Surv...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi i820017 

    Can you offer the sample data you have descibed, based on the information you have offered, you can refer to the following example

    Type_Measure =
    VAR _values1={"Survey Completed", "Survey not Completed","Survey not Offered"}
    VAR _values2={"Survey Completed", "Survey not Completed"}
    SWITCH (
        TRUE (),
        SELECTEDVALUE('ops vw_SurveyDetails'[MediaType] ) = "Chat", CALCULATE([% Of Completion],'ops vw_SurveyDetails'[EventStatus] IN  _values2),SELECTEDVALUE('ops vw_SurveyDetails'[MediaType] ) = "Call", CALCULATE([% Of Completion],'ops vw_SurveyDetails'[EventStatus] IN  _values1),[% Of Completion])

    Best Regards!

    Yolo Zhu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.