You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How can I dynamically count a column in OTBI?

edited Jul 15, 2024 2:50PM in Reporting & Analytics for Sales 1 comment

Summary:

Hi,

In OTBI, how will I be able to get the count dynamically per year when the data type is string, and the sample value is "ABC 2024".

Here is my theory but it is not accepted because the data type is STRING.

COUNT(CASE WHEN table.column_name = 'ABC || TO_CHAR(CURRENT_DATE,'YYYY')'
THEN 1 END)

My desired output is to count the row having the data of "ABC current_year"

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

OTBI-24B

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!