Oracle Analytics Cloud and Server

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

Column level total sort and filter

Received Response
103
Views
16
Comments
2»

Answers

  • Tony_OAS_Apex_User
    Tony_OAS_Apex_User Rank 5 - Community Champion
  • Gianni Ceresa
    edited Jul 25, 2024 6:52PM

    Ok, thanks for the screenshot.

    So you have a pivot with COLUMN1, COLUMN2 in the rows, FY in columns and Amount is your measure.

    Now you want to filter the rows of your pivot based on the total of Amount (all the FY summed together by COLUMN1 and COLUMN2).

    And you said this is a "classic" analysis built on a dataset and not on a subject area, right?

  • Tony_OAS_Apex_User
    Tony_OAS_Apex_User Rank 5 - Community Champion

    Gianni, oh it's from Subject Area..

    Now you want to filter the rows of your pivot based on the total of Amount (all the FY summed together by COLUMN1 and COLUMN2). ——-I will try this!

  • Gianni Ceresa
    edited Jul 25, 2024 7:11PM

    You could set a filter based on an expression using the AGGREGATE( … AT …) function.

    Your FY column is hopefully part of a dimension of some kind (a time dimension probably). There you should have a grand total level, if you do write the expression AGGREGATE( "Amount" AT "name of the dimension level above FY")you will get the Amount summed together for all the FY in your analysis. You can add a filter to your analysis based on that expression and it will only return rows where the sum of all the FY are above the amount you set.

  • Tony_OAS_Apex_User
    Tony_OAS_Apex_User Rank 5 - Community Champion

    Gianni, I tried on DV part ant it looks to be working.

    I am working on OAS and created the Measure as a attribute.
    Aggregate (Amount by Column 1 & Column2 ) and then created the filter.

    I added column total for the row and it seems to pick out what I wanted to be.

    I will finalize query and see if i can get what i want.

    Thank you very much!!!!

  • Tony_OAS_Apex_User
    Tony_OAS_Apex_User Rank 5 - Community Champion

    Thanks.. I tried aggregate on OAS and it works great. ~

    So anyway to make the total sort work? by desc..