Categories
- All Categories
- Oracle Analytics Learning Hub
- 26 Oracle Analytics Sharing Center
- 17 Oracle Analytics Lounge
- 234 Oracle Analytics News
- 45 Oracle Analytics Videos
- 15.9K Oracle Analytics Forums
- 6.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 87 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
How to sum values with condition in current group bi publisher
Emanaly
Rank 1 - Community Starter
Summary
How to sum values with condition in current group bi publisher
Content
what is the correct syntax for this :
<?sum(current-group()/SUM_COS_COSTED_VALUE_[../DEBIT_OR_CREDIT='C']) - SUM_COS_COSTED_VALUE_[../DEBIT_OR_CREDIT='D'] )?>
I want for each CAK_SEGMENT2_ to sum the field (SUM_COS_COSTED_VALUE_) where DEBIT_OR_CREDIT='C' - (SUM_COS_COSTED_VALUE_) where DEBIT_OR_CREDIT='D'
I can get the sum of debits this way <?sum(SUM_COS_COSTED_VALUE_[../DEBIT_OR_CREDIT='D'])?> , similarly, the sum of credits, but when I try to get this for each CAK_SEGMENT2_ I get error unknown expression.
Tagged:
0
Answers
-
Pl check the following blog post for a detailed example
0