I'm having an issue in Primavera Analytics(which uses OBIEE software as a basis)
It's a cloud implementation and I have no way of changing the Datamodel so I'd like to solve it with the Reporting Programs abilities only.
So what I'd like to have is a measure that looks something like this:
COUNT(DISTINCT "Primavera - Activity History"."General - (Activity)"."Activity Id")
WHERE "General - (Activity)"."Activity Id" IN
(SELECT "General - (Activity)"."Activity Id" FROM "Primavera - Activity History"
WHERE "General - (Project)"."Project Name" = @{varProject})
In other terms:
I have a visual where I'm trying to see how many "Activity IDs" the project has in common with the project I selected in a prompt elsewhere.
Simply filtering the entire visual is no problem. But I'd like to know the amount in common AND the amount NOT in common.
- Is it possible to have subqueries in the select part of the SQL?
- If necessary I'm able to generate the list in a visual. Can I transform the results of this visual into a presentation variable and so I only have to count those that are in the presentation variable? What is the size limit of a presentation variable?

Kind regards,
Matthias