Categories
- All Categories
- 67 Oracle Analytics News
- 5 Oracle Analytics Videos
- 13.9K Oracle Analytics Forums
- 5.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 38 Oracle Analytics Trainings
- 55 Oracle Analytics Data Visualizations
- 1 Oracle Analytics Data Visualizations Challenge
- 2 Oracle Analytics Career
- 4 Oracle Analytics Industry
- Find Partners
- For Partners
Counting Attributes in a Column for Yield Data
Summary
Need help with count functionality Oracle Analytics Cloud
Content
I am trying to ultimately get yield percentages on a bar chart but for now i'm trying to figure out if i can create a calculation that will give me the pass yield percentage broken down monthly.
I have data that looks like the below.
Normally in excel I would just use a countif function and count the amount of records that meet "accept" then count the amount of records that meet "reject".
Then simple math # Accept / Total Record Count * 100% to get my percentage yield
March 2021 | April 2021 | May 2021 | June 2021 | |
Accept | 2323 | 2123 | 1234 | 2314 |
Reject | 234 | 222 | 323 | 232 |
Total Record Count | 2557 | 2345 | 1557 | 2546 |
Yield | 90.84% |
2 questions.
1. How do I make a calculation work in Oracle Analytics Cloud to support my request? The Column I has 2 data attributes (Accept and Reject)
2. How do I then apply the yield percentage to a bar chart? Would this be Y2 data based off the custom calculation. See attached picture
Any help is super appreciated!!!
Version
Oracle Analytics Cloud Latest Version
Answers
-
You can use CASE statement or FILTER function to calculate the yield value. For example,
100*(CASE <Accept/Reject column name> WHEN 'Accept' THEN <Count Column Name> ELSE 0 END)/<Count Column Name>
OR
100*(FILTER <Count Column Name> USING <Accept/Reject column name> = 'Accept')/<Count Column Name>
0