Forum Discussion

xiumi_hou's avatar
xiumi_hou
Icon for Post Partisan rankPost Partisan
6 years ago
Solved

urgent: Quick question for dax

Dear all,   I have two measures.  I want to count the number of [measure 1] that the measure 2's result is 0   When I use measure 1 as a card view and put measure 2 to a filter(set=0) which works...
  • v-kelly-msft's avatar
    v-kelly-msft
    6 years ago

    Hi xiumi_hou ,

     

    Yes,my measure is based on yours,have you tried it?

    Your measure "SF_Before_A1" should be corrected to either of the following ones:

     

    SF_Before_A1 = calculate([SF_case_inactive], 'Calls'[Count_Held_Sessions_A1]=0)

     

    Or

     

    SF_Before_A1 = If ('Calls'[Count_Held_Sessions_A1]=0,[SF_case_inactive],blank())

     

    I just advise you not to use "filter" funtion in this situation.

    And measure 1 and measure 2 remain the same.

    Pls try it and advise me if there's any error returned.

     

    Best Regards,

    Kelly