Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 208 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 76 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Select Distinct on a join?

Hi,
Here is the problem.
Fact Table - X contains dollar amounts, it joins to Dim - X table by RowID = RowID. In certain instances, the Dim - X table repeats the same RowID, because some of the other columns in Dim - X are different. In these certain instances, the dollar amounts from Fact - X are multiplied buy the number of repeated RowIDs in Dim - X.
Is there any way to work around this by putting a distinct on the Fact - X. Dollar amount column or somehow in the dimension.
Thanks
Answers
-
could you possibly use a subquery?
where your join condition would look like:
inner join (select distinct f1,f2,f3... from secondTable) t2
on fact.rowid=t2.rowid
0 -
If it is custom mapping then I would suggest to check group by clause or agg trans in your mapping.
for any assistance : expect more detail query.
0