Forum Discussion

android1's avatar
android1
Icon for Post Patron rankPost Patron
10 years ago
Solved

How to count values in a column

Hi,

 

I have a calculated column % Worked = (AVS[Real Act Min]/AVS[scheduledMinutes]). I want to count the amount of times

the value in % Worked is <=79. Thought this should work but it's not -> 79 = COUNTROWS(FILTER(AVS,[% Worked]<=79))

  • So, just create a calculated column like:

     

    79 = IF([% Worked]<=79,1,0)

    Then you can just do a COUNT aggregation on [79].

  • android1

    The value is the actual data, regardless of the date format,  change the 79 to 0.79, then if should behave as expected

     

    Regards,

    Charlie Liao

8 Replies

      • Greg_Deckler's avatar
        Greg_Deckler
        Icon for Community Champion rankCommunity Champion

        Oh, >slaps self in forehead<, I understand what you are going for now, (I think). Can you post some sample data and your expected results? That way I can be sure I answer the correct problem.

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

    android1

    The value is the actual data, regardless of the date format,  change the 79 to 0.79, then if should behave as expected

     

    Regards,

    Charlie Liao