Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Total count for Logical value

Hi Team,

 

I have done If logical funtion in New Measure ,
Status_If = If(Value 1 > Value 2, "Above","Below")

After above calculation I need total count Separate for Month wise.

 

 

 

Thanks,

KV's

2 Replies

  • Hi Anonymous 

     

    Try these measures:

     

    Above Count = CALCULATE(COUNTA('Table'[Value 1]),filter('Table',[Status_If]="Above"))
     
    Below Count = CALCULATE(COUNTA('Table'[Value 2]),filter('Table',[Status_If]="Below"))
     

    Did I answer your question? Mark my post as a solution!

    Appreciate your Kudos  !!

     
  • v-chenwuz-msft's avatar
    v-chenwuz-msft
    Community Support

    Hi  Udt_KV,

    Based on your description, I have created a simple data table.

     

    Two measures:

    Above count = COUNTROWS(filter('table','table'[Status if]="Above") )

    Below count = COUNTROWS(filter('table','table'[Status if]="Below") )

     

    The above are the measures you require to calculate separately, and in order to be consistent with the results in the figure you gave, you need to add another measure

    count SKU = COUNTA('table'[SKU])

    Then create a table visual and put all these measures into the visual.

     

     

    Best Regards

    Community Support Team _ chenwu zhu

     

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