Categories
- All Categories
 - Oracle Analytics Learning Hub
 - 19 Oracle Analytics Sharing Center
 - 17 Oracle Analytics Lounge
 - 233 Oracle Analytics News
 - 44 Oracle Analytics Videos
 - 15.9K Oracle Analytics Forums
 - 6.2K Oracle Analytics Idea Labs
 - Oracle Analytics User Groups
 - 87 Oracle Analytics Trainings
 - 15 Oracle Analytics Data Visualizations Challenge
 - Find Partners
 - For Partners
 
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
How to make a conditional calculation
                
                    Juliandelgadillo                
                
                     Rank 3 - Community Apprentice                
            
                        
            Summary
How to make a conditional calculation
Content
Hi all,
I'm trying to figure out how to make a conditional count.
I have a column where the cells are filled whit "YES" or "NO" and I want to count how many "YES" I have in the whole column.
Thank you in advance for your help.
0  
            Answers
- 
            
I have done what you suggest like this:

However it is not counting only the 'Yes' this calculation is counting all registers.
0 - 
            
Create a new column with a CASE WHEN statement.
Example:
CASE WHEN column1 = 'Yes' THEN 1 ELSE 0 END
Then make the default aggregation on that field a sum or count
0 - 
            
I'm sharing the one that finally worked after a lot of attempts.
0