Hi.
I'm doing a parameter in which the user selects a document code of a document type. In the database I have a table "Documents" and the table "DocTypes" and the first table has a foreign key linked to the primary of the second table. This way have two Dimensions in the Mondrian: [Docs] (with lelvel [doc]) and [DocType].
In the PRD I created the following query to be used for the parameter at issue:
But the PRD ignores the WHERE clause and shows all documents of all types.
I tried the same query in JPivot and it worked there. The problem is only happening in the PRD.
I'm doing a parameter in which the user selects a document code of a document type. In the database I have a table "Documents" and the table "DocTypes" and the first table has a foreign key linked to the primary of the second table. This way have two Dimensions in the Mondrian: [Docs] (with lelvel [doc]) and [DocType].
In the PRD I created the following query to be used for the parameter at issue:
Code:
WITH member [Measures].[Name] as '[Docs.Docs].CurrentMember.UniqueName'
SELECT
NON EMPTY {Hierarchize({[Measures].[Name]})} ON COLUMNS,
NON EMPTY {Hierarchize({[Docs].[Doc].Members})} ON ROWS
FROM [Sales]
WHERE {[DocType].[EAQ]}
I tried the same query in JPivot and it worked there. The problem is only happening in the PRD.