Showing posts with label and Non-Additive Fact?. Show all posts
Showing posts with label and Non-Additive Fact?. Show all posts

Wednesday, August 12, 2026

188 ) Additive, Semi-Additive, and Non-Additive Fact?

 What is the difference between an

 Additive, Semi-Additive, and Non-Additive Fact? Can you give examples from your project?

Answer:

  • Additive Facts: These can be summed up across all dimensions. In our project, Claim_Payout_Amount was fully additive—we could sum it up by agent, branch, month, or policy type.
  • Semi-Additive Facts: These can be summed up across some dimensions, but not across time. In our project, Policy_Account_Balance or Outstanding_Reserve_Amount was semi-additive. You can add them up across different branches for a specific day, but you cannot add a month-end balance across all days of the year.
  • Non-Additive Facts: These cannot be summed up at all. Ratios or percentages fall here, such as a Loss_Ratio. Instead of adding ratios together, the warehouse calculates them dynamically by dividing total claims by total premiums

215 ) query : Customers Purchasing the Same Product in Different Stores in Same Month

  /*  ### Step 1: DDL & DML (Sample Data Setup) ```sql -- 1. Create Orders Table */ DROP TABLE customerorders ; CREATE TABLE custome...