Oracle Transactional Business Intelligence

Products Banner

Count positive values and compare with total count to get the aggregated share of positive values

Received Response
83
Views
3
Comments

Summary:

How can I count the number of positive values in a column and compare with the total count to get the share percentage of positive values?

Content (required):

I have column with positive, negative and 0 values. I want to count the number of positive values (>0) and then compare with the count of all values to show which percentage of the values are positive on an aggregated level.

Please see screenshot for details.

Thanks in advance!

Version (include the version you are using, if applicable):

22D

Code Snippet (add any code snippets that support your topic, if applicable):


Answers