Aggregate count function does not work in the denominator
When I use the following statement in a card summary, it works properly. But when use it as a value in a Single Value card, the count function doesn't work anymore:
SUM(CASE
WHEN ROUND(100*`Score`/`PossibleScore`)>=60 THEN 1
ELSE 0
END)
/
COUNT( `AttemptNumber`)
For more context, the Attemptnumber column has 450 rows where each row contains a number same number (e.g. 1 or 2, etc). Therefore, I'm expecting to count 450 of them and get 450 in the denominator. But it ends up with the value of only one of the samples (e.g. 1 or 2, etc). I hope I explained it clearly.
Oddly enough, when I changed the division operation to addition it works! Any suggestion and comments are highly appreciated.
Thanks,
Musetti
Best Answer
Answers

@MichelleH you just solved the problem! I removed all of the sorting and now it gives the right number. Amazing!
@RobSomers that is actually great idea. Thanks!
Musetti
0
Categories
 11K All Categories
 5 Private Company Board
 2 APAC User Group
 12 Welcome
 42 Domo News
 9.9K Using Domo
 2K Dataflows
 2.5K Card Building
 2.2K Ideas Exchange
 1.2K Connectors
 349 Workbench
 267 Domo Best Practices
 12 Domo Certification
 474 Domo Developer
 51 Domo Everywhere
 110 Apps
 726 New to Domo
 85 Dojo
 Domopalooza
 1.1K 日本支部
 4 道場日本支部へようこそ
 29 お知らせ
 65 Kowaza
 302 仲間に相談
 664 ひらめき共有