on 12-11-2017 7:53 PM
I want a unique list of all IDs that contain value 1 from field X, regardless as to whether the ID also contains other values for the field, and a unique list of IDs that do not at all contain the value 1 from field X in the same report. Each ID can have multiple values from field X. I am not looking for a field per record or a summary that will tell me which group each ID fits into, but rather want to know how to get a group or way to get a list of IDs for each of the two conditions into one report.
Ah, I missed some details. Here's what you need to do:
1. Modify the formula above to:
WhileReadingRecords;
stringvar s;
if {FieldX} = 1 then
(
if instr(s,totext({ID},'#')) = 0 then //you don't need the string conversion using totext() if the ID field is string
(
s := s + totext({ID},'#');
);
);
if instr(s,totext({ID},'#')) > 0 then 'Contains 1' else 'Contains 2'
2. Insert a Group on this formula field.
3. Insert a second group on the ID field.
4. Suppress the Details Section.
5. Suppress the Group Footer #2 section.
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alisha,
Modify the formula I posted above to:
If {fieldx} = 1 Then 'IDs that contain 1' Else 'IDs that do not contain 1'
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This results in the same thing. I do not want IDs to repeat as in the example provided. If an ID at all contains 1 I want them in group 1 and only group 1, so if an ID has 1 and 3 I only want that ID to show in Group 1. If an ID does not at all contain 1 I want them to show up once in group 2.
Hi Alesha,
Could you please post an example with data and the expected groupings?
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alesha,
1. Create a formula with this code:
If {fieldx} LIKE '*value 1*' Then 'Group1' Else 'Group2' //you may name the groups anything
2. Insert a group on this formula field.
3. Place the ID field on the Details Section.
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.