Let me walk you through the complete solution that addresses all three aspects - OTBI formula validation, tiered pricing logic, and BI Publisher advanced calculations.
OTBI Formula Validation:
Your current formula has a fundamental flaw - it’s calculating discount as a simple difference without considering the tier application sequence. The correct approach requires joining to the pricing tier tables to get the effective tier discount:
SELECT pt.price_list_id,
pt.list_price,
ptr.tier_level,
ptr.discount_percent as tier_discount,
pt.list_price * (1 - ptr.cumulative_discount/100) as expected_net_price
FROM pricing_transactions pt
JOIN pricing_tier_rules ptr ON pt.tier_id = ptr.tier_id
Tiered Pricing Logic:
The key issue is understanding how Oracle applies tiered discounts - they’re cumulative, not replacement-based. If a customer qualifies for Tier 1 (5%) and Tier 2 (10%), the effective discount isn’t 15% but rather 14.5% (5% off, then 10% off the reduced price). Your OTBI subject area needs to reflect this cumulative calculation.
To fix this in your existing OTBI report:
- Modify your subject area to include the PRICING_TIER_HIERARCHY table
- Create a calculated field that applies discounts sequentially: `List_Price * (1 - Tier1_Pct/100) * (1 - Tier2_Pct/100)
- Add a validation column comparing your calculated discount to the actual applied discount
BI Publisher Advanced Calculations:
For complex scenarios where OTBI formulas become unwieldy, use BI Publisher’s data model with a SQL-based calculation layer. Create a BI Publisher data model that:
- Pulls the base pricing transaction data
- Applies tier logic using CASE statements and window functions to handle sequential discounts
- Exposes the calculated fields back to OTBI as a custom subject area
- Uses BI Publisher’s formula editor for any remaining complex calculations that need conditional logic
The BI Publisher approach gives you more control over calculation precedence and handles edge cases like overlapping promotional discounts better than pure OTBI formulas.
Validation Steps:
- Run both your original OTBI formula and the corrected version side-by-side
- Export a sample of 50-100 transactions with known correct discount values
- Compare the OTBI results against the source transaction data
- For any discrepancies, trace through the tier application logic step by step
This comprehensive approach addresses the root cause (incorrect tier calculation logic) while giving you the flexibility to handle increasingly complex pricing scenarios. The hybrid OTBI + BI Publisher architecture is the most robust solution for enterprise-scale pricing analytics.
One final note: after implementing this fix, document your tier calculation logic clearly. Future report developers will need to understand the cumulative discount model to maintain accuracy across all pricing analytics reports.
This draft is based on general Oracle Fusion Cloud knowledge. It has not been verified against your specific version and environment. Practitioners: verify the steps and share your experience below.