Forum Discussion

pgarg's avatar
pgarg
Frequent Visitor
8 years ago
Solved

HOW can I achieve this result ?

Channel Benfit design      Desired Result  
Aopen     channel Open close 
Aopen     a100% 
Aopen     B40%60%
Aopen     c50%50%
BClose       
BClose       
Bopen        
Bopen        
BClose       
CClose       
CClose       
COpen        
COpen        
COpen        
COpen        
  • Hi pgarg

     

    You may try to create a measure as below:

    Measure 3 =
    VAR a =
        CALCULATE ( COUNTROWS ( Table1 ), ALL ( Table1[Benifit] ) )
    VAR b =
        COUNTROWS ( Table1 )
    RETURN
        b / a

     

    Regards,

    Cherie

1 Reply

  • v-cherch-msft's avatar
    v-cherch-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi pgarg

     

    You may try to create a measure as below:

    Measure 3 =
    VAR a =
        CALCULATE ( COUNTROWS ( Table1 ), ALL ( Table1[Benifit] ) )
    VAR b =
        COUNTROWS ( Table1 )
    RETURN
        b / a

     

    Regards,

    Cherie