Forum Discussion

wimsangers's avatar
wimsangers
Helper I
7 years ago
Solved

Measure with multiple conditions

Hi all,   I have a problem with creating a measure and need your help.   I am trying to get a count of leads that we scored. A lead goes trough a process and when it is passed installation it is ...
  • v-xuding-msft's avatar
    v-xuding-msft
    6 years ago

    Hi wimsangers ,

    I modified the formula that you can have a try.

    Measure 2 = 
    var in_fi = CALCULATETABLE(VALUES(Table1[process_id]),FILTER(Table1,'Table1'[task_class] = "flow.oslo.builder_installation" && 'Table1'[task_finished] <> BLANK()))
    var com_bla = CALCULATETABLE(VALUES(Table1[process_id]),FILTER(Table1,'Table1'[task_class] = "flow.oslo.complete_data" && 'Table1'[task_finished] = BLANK()))
    return 
    COUNTROWS(INTERSECT(in_fi,com_bla))

    In this way, you could show the result in a card visual. If you put it into a table, it will just show in total.

     

    Best Regards,

    Xue Ding

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