Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Summarise measure output

Hi guys,

 

Can I get your help on an issue I've been trying to tackle? I'm trying to summarise/aggregate outputs of a measure.

 

For example my initial data set is:

LocationNameNumber of Visits
AA1
BA3
CA8
DA29

 

I want to flag all number of visits >5 using a measure so I'll use an IF function in DAX. I'll use a matrix visualisation and produce something like; where 0 = the rule is not triggered (i,e, visits <5) and 1 = rule is triggered (visits >5).

 

LocationNameNumber of Visits
AA0
BA0
CA1
DA1

 

Now I want to aggregate these results into summary statistics e.g.

 

There are 2 0s and 2 1s or 50% of the result of the measure is 1 and 50% is 0s.

 

What function should I use to produce these summary statistics?

 

Thank you for your help!!

1 Reply

  • kentyler's avatar
    kentyler
    Icon for Solution Sage rankSolution Sage

    Count the number of locations.

    Sum the number of visits.

    Divide