Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 44 Oracle Analytics and AI Sharing Center
- 19 Oracle Analytics and AI Lounge
- 278 Oracle Analytics and AI News
- 56 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 103 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
How to aggregate this table?
Stefano_Mazzocca
Rank 6 - Analytics & AI Lead
I have this table:
Column C counts 1 when A = B and all these 3 are custom metrics.
Is there a way to make an aggregate view with only columns D, E and C? If we make a pivot or modify col C metric with "SUM" all the values are the same for each D or E value
Tagged:
0
Best Answer
-
Instead of SUM( C) , use COUNT(A) FILTER (WHERE A = B) to ensure proper aggregation.
This ensures that C is counted only when A=B.
Hope this helps!
2

