Forum Discussion
BradleyN1
2 years agoFrequent Visitor
Counting values based on unique ID then dividing
Hi, I am working on survey data, and I want an overall satisfaction percentage. As I've had to unpivot the columns, I've got duplicate statements in 1 column, but I only want to count the numbe...
Dangar332
Resident Rockstar
2 years agoHi, BradleyN1
try below
just adjust your table and column name
Measure =
var a = CALCULATE(COUNT('count'[Response]),or('count'[Response]="agree" ,'count'[Response]="strongly agree"))
var b = COUNT('count'[Response])
return
DIVIDE(a,b)
BradleyN1
2 years agoFrequent Visitor
Oh, you are amazing! It works perfectly, thanks so much 🙂