Forum Discussion

RichardP's avatar
RichardP
Helper I
8 years ago
Solved

Grouping values from measures

Hi,

 

I have a table that looks something like this:

 

AccountIDUserIDVisitsHelp requests
abc11150
abc45601
abc789152
def55522
def66601

 

I then have a measure that calculates a 'health score' for each account based on how many visits the users from each account make to the website and how many times they ask for help.

 

When I display the measure in a table with another column showing the account name then I get a health score for each account, EG:

AccountIDHealth Score
abc20
def7
ghi-55
jkl2
mno1

What I'd like to do is count how many accounts have health scores in different bands. Eg to show a pie chart that shows how many accounts have a score below zero, how many have a score between 0 and 75, and how many are 76 and over.

 

Is it possible to do such a calculation based on values in a measure?  I'm stuck and any help is greatfully received!

 

Thank you :)

 

 

  • You should be able to do it like this:

     

    Table = SUMMARIZE('TABLE','TABLE'[Column],"MyMeasure",[Measure])

16 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    So, you should be able to create a table using SUMMARIZE that includes this measure and do your grouping that way. Or create another table with your categories and do a count in that table that fit the defined criteria.

    • RichardP's avatar
      RichardP
      Helper I

      Hi Greg_Deckler,

       

      Thank you for such a quick reply :) 

       

      When I try with SUMMARIZE I don't have an option to do it on the basis of a Measure - it looks like it is only available for table columns.

       

       

      • Greg_Deckler's avatar
        Greg_Deckler
        Community Champion

        You should be able to do it like this:

         

        Table = SUMMARIZE('TABLE','TABLE'[Column],"MyMeasure",[Measure])