Questions tagged [fact]

A fact or fact table is the central table in a Star or Snowflake schema of a data warehouse. A fact table stores quantitative information for analysis and is often denormalized. It measures the business operations in the organization. It is included in every data warehouse or data mart.

A fact or fact table is the central table in a Star or Snowflake schema of a data warehouse. A fact table stores quantitative information for analysis and is often denormalized. It measures the business operations in the organization. It is included in every data warehouse or data mart.

Facts are the measurements that result from a business process event and are almost always numeric. A single fact table rows has a one-to-one relationship to a measurement event as described by the fact table's grain. Fact table corresponds to a physical observable event.

Within a fact table, only fact consistent with the decraled grain are allowed. The fact table work with dimension tables. The fact table holds the ways in which the fact table data can be analyzed. There are two type of columns in there - foreign key columns for join with the dimensions and the measures columns, containing the data analyzed.

Example

In retail sales transaction, the quantity of a product sold and its extended price are good facts. Store manager's salary is disallowed in the fact table.

Links

182 questions
1
vote
1 answer

Data warehouse - Dimension Modeling

I am new to BI/Datawarehousing, and after building some easy samples, I have the need to build a more complex structure. My project initially involved product licenses, and I was measuring how many sold, by month/year and by program, and just…
M.R.
  • 4,737
  • 3
  • 37
  • 81
1
vote
1 answer

Prolog: facts and rules

I have the following situation, I have to make a predicate that represents a doctor attending a patient, but it does not…
Vale
  • 13
  • 5
1
vote
0 answers

Create Star Schema for customer transactions based on the branch, customer and account type

A bank management wants to analyze the customer transactions based on the branch, customer and account type. They monitor transactions using counts and amounts. Draw a star schema to satisfy their need. In the same above scenario, it was noticed…
1
vote
1 answer

PL/SQL Stored Procedure to Populate Fact Table

I need to populate this fact table using a PL/SQL stored procedure: CREATE TABLE SALES_FACTS (saleDay DATE, vehicleCode INT, planID INT, dealerID INT, vehiclesSold INT, grossSalesAmt NUMBER(10), CONSTRAINT…
StevenC
  • 109
  • 1
  • 20
1
vote
2 answers

Is it ok to have multiple fact tables that are connected to the same dimension tables without using a link table?

Let's say that in my database model I have three fact tables. These fact tables have same dimension tables (so called conformed dimensions). I know that I shouldn't connect directly fact tables (since direct connection can cause double-counting of…
GileBrt
  • 1,830
  • 3
  • 20
  • 28
1
vote
1 answer

Omitting measures values related to unknown memeber

I have a dimension attribute which has either 1 or 0 and few measures which are count, sum or average. I don't want to display values of measures which are related to attribute 0. Ex: Attribute Name: Is_related List item : Values: 0 or 1 now,…
Zerotoinfinity
  • 6,290
  • 32
  • 130
  • 206
1
vote
1 answer

Questions on how to model many semi-boolean attributes in a star schema

What's the best way to model 37 different attributes/"checkpoints" (that can be graded as Pass/Fail/Not Applicable) in a dimension for a star schema where each row in the fact table is a communication that is graded against the checkpoints in…
1
vote
3 answers

Using a list from a fact within Prolog rules

I am currently writing a rail line program but am having a little trouble using lists that come from facts. I am quite new to Prolog and so far have written the following facts and rules: location(euston, [northernLine]). location(warrenStreet,…
1
vote
1 answer

Retrieving a specific parameter from fact

I've asked around how to construct a list with the facts ordered by a specific character inside it and the solution given was a KEY-Value return. Like for instance : 1-package(N,3,1). However what I truly need is to access the variable in the…
E.T.
  • 367
  • 5
  • 18
1
vote
1 answer

Prolog - call a rule with fact

TL;DR: Need help calling a rule with a fact I´ve started out with Prolog, coming from C and got stuff working... until they evidently got broken. I´m writing a small car-paint program for myself as I´m learning this new language I'm trying to call a…
shaungus
  • 129
  • 3
  • 7
1
vote
1 answer

Active Projects over Years

I have a Project fact table which has a start date and latest activity date. One of the questions I am trying to answer is for each year how many active projects do i have? So lets says ProjectA started in 2012 and is active in 2016. ProjectB…
AM96
  • 43
  • 7
1
vote
1 answer

Is Azure Stream Analytics suitable for generating data warehouse fact and dimensions tables?

I have the following scenario that I am thinking of implementing via Azure Stream Analytics. My input consists of: Events streaming in from an Azure Event Hub. Reference data that relates to the events. Some of this data is "slowly changing" from…
urig
  • 16,016
  • 26
  • 115
  • 184
1
vote
1 answer

Star Schema - Attributes in Fact Tables

normally a fact table in a Star Schema contains just foreign keys to the dimension tables and measures. Let's say I have a delivery and I want to store the delivery # and a reference # can I just store the delivery & reference # in the fact table?…
jP_
  • 151
  • 1
  • 8
1
vote
1 answer

How can I populate my Fact table?

I am not a seasoned BI developer so I need help populating my fact table. Firstly, I have populated all my Dimensions from my production database (I'm not using a staging database or tables) using the appropriate SSIS components. DimParent,…
Jnr
  • 1,504
  • 2
  • 21
  • 36
1
vote
0 answers

Handling properties as a dimension

Sample are collected from patients. Depending upon the type of the sample, samples could have different properties/attributes. There is a list of 5 properties/attributes which are standard across all samples, but they can have 2 dynamic properties.…
AM96
  • 43
  • 7