Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 212 Oracle Analytics News
- 42 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 78 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
COUNTIF and COUNTIFS function for 'My Calculations'

Users in my organization have a need for a custom calculation that seems to only be possible using a COUNTIFS function. I'm basing this on my familiarity with the Excel function, and am requesting as such. If there is an alternative by which the same outcome can be accomplished I would be happy with that as well.
Comments
-
Try the Filter function.
Filter
This function generates a new filtered measure from the given measure and the given filter expression.
FILTER(measure USING filter_expr)
measure is the name of a measure column. filter_expr is a filter expression.
Example: FILTER(revenue USING brand = 'abc')
2 -
@Megan Terrell I am specifically attempting to return a count of invoices based on their pay terms and how many have been paid on time vs not based on another custom calculation that I am working on. There isn't currently a measure by which to return a count to my knowledge.
0 -
Try using a Count Distinct for the invoice number. See below.
(Filter(count(distinct(invoice #)) using [pay terms] in (X, Y, Z) AND [paid] = 'on time'))
1 -
@Megan Terrell thanks for this idea! The calculation validates appropriately, but I am getting an incorrect number count when comparing back to a detailed view that shows each invoice uniquely. I do get the same total number when using a regular Count(Distinct) function, so maybe I need to check the metadata. Regardless, I wanted to acknowledge that your suggestion was helpful - thank you!
2