I've had the same problem in 11.1.6, and the only solution I've found was to do the count distinct in the report rather than in the data module. I haven't tried doing it in a Dashboard calculation to see if I get the same benefit.
What I did was create a query with all the columns I need from the data module, including the column I wish to count.
I then dragged over a new query, and dragged my original query to the right of the new query (thus "feeding" query2 with query1's contents)
I then added all my columns from query1, and adjusted the default aggregate to count distinct on the column I was counting.
That eliminated the error -- I'm guessing because the query optimizer saw the count distinct happening after the subquery joined my disparate sources.
Have you opened a bug report with IBM on the issue?
Rich
------------------------------
Richard Chester
Director of Business Intelligence
LPA Software Solutions
------------------------------
Original Message:
Sent: Tue June 02, 2020 09:32 PM
From: Kleber Vieira
Subject: CA 11.1.6 Data Modules Custom Table unable to do a distinct count
creating the count distinct itself is not a problem, the problem is when i join the fact that contain the count calculation to a month columns from my date dimension, that is where the error comes up, whatever the template you use for it, crosstab or graph, the error is the same.
------------------------------
Kleber Vieira
Original Message:
Sent: Tue June 02, 2020 07:34 PM
From: Kleber Vieira
Subject: CA 11.1.6 Data Modules Custom Table unable to do a distinct count
a have hire_key field which is text example of a key 4517778-1 where i created a calculation count(distinct(hire_key)).
my situation is not a view, it is SQL table.
any suggestion would be great
------------------------------
Kleber Vieira
Original Message:
Sent: Tue June 02, 2020 03:25 AM
From: Kleber Vieira
Subject: CA 11.1.6 Data Modules Custom Table unable to do a distinct count
I have the same issue using sql tables objects within data module. have deployed 11.1.5 last weekend and found that the audit database wasn't been populated properly. Spoke to IBM and it was a bug then, they gave me an interin hot fix for 11.1.5 and fixed the audit issue but found that on my dashboard which the users created on 11.1.5 and promoted to production but now, facing this issue on my test environment, any idea so far how to fix it?
------------------------------
Kleber Vieira
Original Message:
Sent: Wed May 06, 2020 07:06 PM
From: Tom Rosenow
Subject: CA 11.1.6 Data Modules Custom Table unable to do a distinct count
Hello.
When I create a custom table (view) from a fact and dimension table needing to conduct an evaluation for a new fact table, I can no longer do a DISTINCT COUNT on ids if I join the new fact table back to my dimensions for report writing.
error:
XQE-PLN-0385 Count distinct is not supported for queries that span multiple sources.
This worked fine in 11.1.5.
The query plan must have changed or the process. How do I update or correct this?
Thanks.
------------------------------
Tom Rosenow
------------------------------
#CognosAnalyticswithWatson