Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Conditional Formatting In Pivot Table

Received Response
1
Views
2
Comments
1977947
1977947 Rank 3 - Community Apprentice

I have 3 columns in my Pivot Table.

Status

Month (Filtered for January and February)

Revenue

The "Status" column will contain a conditional format as follows:

If Revenue for February is greater than Revenue for January then "Good" else "Bad".

Not sure how to pull this off. Can I use a FILTER statement or is it better to use a CASE statement here or is it possible to use both: I have tried below but it did not work.

CASE WHEN

FILTER(Revenue USING (Month = 'February')) > FILTER(Revenue USING (Month = 'January')) THEN 'Good'

ELSE 'Bad'

END

Any ideas are welcome.

Answers

  • cesar.advincula.o
    cesar.advincula.o Rank 6 - Analytics Lead

    Hello,

    The question is:

    " Why we are using FILTER to compare for these two months ( "February and January"), it is not real dynamic? "

      I propouse to use AGO function, to get the dynamic status.

    Note:

    AGO Function could implement by Oracle BI Presentation Services or Oracle BI Administration Tool.

    - Oracle BI Administration Tool:  check http://gerardnico.com/wiki/dat/obiee/ago

    - Oracle BI Presentation Services - Oracle BI Answers:

      Check this steps.

    Criteria

    Criteria.png

    Edit Formula by Column:

    Period.png

    SaldoInicial.png

        revenue_Ago.png

           CASE_status.png

    Results:

         Results.png

         Pivot Table.png

    Kind Regards,

  • Joel
    Joel Rank 8 - Analytics Strategist

    +1 @cesar.advincula.o

    You'll need to use the AGO function to retrieve the measure value for the previous period in order to compare current value with previous value for each row.