on 01-28-2014 4:04 PM
Hello,
I'm not sure where to post this, so I hope this is the correct section. I'm trying to count the number of unique forms and I've tried using both the count and sum functions using distinct and all, but nothing is giving me the desired results.
First Name | Last Name | Form Number |
John | Smith | 123 |
Annie | Jones | 139 |
Duncan | Hines | 139 |
Betty | Crocker | 180 |
I'm working on a summary table that should look like the one below.
Number of Unique Forms | 3 |
Number of Combined Forms | 1 |
Any suggestions?
By the way I'm using an older version of BOXi, if that matters. We're still on 3.1 here.
Hi,
Try the below solution,
For Gettting,
Number of Unique Forms = Count([Form Number];Distinct) = 3
Number of Combined Forms = Sum(If(Count([Form Number];All)In([Form Number])>1;1;0)) = 1
Thanks
Subasree
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Based on the data that you've provided, I've created a table with two rows in it as you have.
To get the three, I have used =Count([FormNumber])
To get the one, I have used =Count([FormNumber]) Where (Count([FormNumber];All) In ([FormNumber])>1)
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It worked fine for me Jonathan. I used alphanumerics in the FormNumber field so I'm not sure what's different.
I have no idea why you get 2. I've taken your four rows, typed them into notepad and used it as a data source in Webi Rich Client. I had a vertical table with all the rows in and then a horizontal table with just the two sets of words and the two counts that you were seeking, using the formula that I had. It worked fine (obviously, or I wouldn't have posted it!) so I'm not sure what you're doing differently. Are there any filters on your blocks?
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.