Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I've been unsuccessful in getting this stuburn code to work correctly. What I'm attempting is to return is all records where:
1) The [project status] is open
2) Return those projects where NO projects have any values with a [completion status] equal to 'In_Prog'
The problem is that it returns projects but includes those projects with 'In_Prog' data values. My task is to Complete those projects that are open that are no longer 'In_Prog'
My set Analysis is as follows:
Count(aggr(Count({<[Project Status]={'Open'},[Completion Status]-= {'In Progress'} > }distinct [Projects]), [Projects))
I included a sample data file for testing, Any insights would be great
Hi, perhaps this.
=Count({$<[Project Status]={'Open'}, [Projects] -= P({<[Completion Status]={'In_Prog'}>} [Projects])>} DISTINCT [Projects])
As a filter pane or calculated dimension use this
=Aggr(Only({$<[Project Status]={'Open'}, [Projects] -= P({<[Completion Status]={'In_Prog'}>} [Projects])>} [Completion Status]), [Completion Status])
=count(Aggr(Only({$<[Project Status]={'Open'}, [Projects] = E({<[Completion Status]={'In Progress'}>} [Projects])>} Group, [Completion Status]), [Completion Status]))
Thanks but unfortunately it didn't work as desired. Maybe i need to add more detail to show my results.
I included the updated QVF file, the table below show only show the following results:
Group C should only show project 7300, 8728
Group E should only show project 9035, 9163
Group F should only show project 6753, 8605
The Aggr seems to not be formed properly, can you see the issue?
Thanks in advance for all your help
Hi, perhaps this.
=Count({$<[Project Status]={'Open'}, [Projects] -= P({<[Completion Status]={'In_Prog'}>} [Projects])>} DISTINCT [Projects])
No that returned In prog project records too. It needs to return a list of projects that have NO 'in_prog' records.
😞
isn't this what you want?
Here is what i'm seeing locally still getting returned
See here:
As a filter pane or calculated dimension use this
=Aggr(Only({$<[Project Status]={'Open'}, [Projects] -= P({<[Completion Status]={'In_Prog'}>} [Projects])>} [Completion Status]), [Completion Status])
Holly cow this is very painful, It still shows, look at project 8892
Add the count measure to filter the result.
Hi
One of the way to achieve this ,
Count({<[Project Status]={'Open'}, Projects-={$(=Concat({<[Completion Status]={'In_Prog'}>}Distinct Projects, ','))}>}DISTINCT Projects)