Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Stacked Column Chart Help with % Count

Hi,

 

I have a measure that gives the percentage of on time deliveries we make for each customer with the following formula

(Difot Monthly % = divide(sum(Difot[Difot Pass Count]),sum(Difot[Difot Count]))

eg 

Im trying to think of a formula to give the count of how many customers would fall into each braket such as difot <50%, 50 - 60%, 70-80%, etc up to 100% so I can create a stacked column chart and show by month.

The Above is a manual upload that wont change with the new month

I have tried the following 

<50% = COUNTROWS(filter(Difot,DIVIDE(sum(Difot[Difot Pass Count]),sum(Difot[Difot Count]))<=50)) but it returns the number of rows.
But i realise I want to count how many customers fall into each bracket which I haven't been able to include.
 
Any ideas?
Thanks in advance,
EamG