Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

create dynamic pivot with subtotals at each group

malikadeelMay 3 2019 — edited Oct 26 2019

I have below Sample data from database to show as pivot with subtotal on each group

 

Balance TypeService TypeDvisionOUBalance
Past DueService 1Division 1Ou 110
Past DueService 1Division 1Ou 220
Past DueService 2Division 1Ou 130
Past DueService 2Division 2Ou 240
CurrentService 1Division 1Ou 150
CurrentService 2Division 1Ou 260
CurrentService 2Division 2Ou 170
CurrentService 2Division 2Ou 270

Expected Output in PLSQL Dynamic Content

      

Service 1Service 1 TotalService 2Service 2 TotalGrand Total
Division 1Division 1 TotalDivision 1Division 1 TotalDivision 2Division 2 Total
Balance TypeOu1Ou2Ou1Ou2Ou1Ou2
Current50505060607070140200250
Past Due102030303030404070100
Grand Total6020808030609070110180270350

I want to create PLsql Dynamic Content to display a html report using htp.p with css or javascript . Also if possible i want some collapsible groups at each level.

Comments
Post Details
Added on May 3 2019
31 comments
3,057 views