Fact Type Table Validation Process

Data is migrated from the State’s source system into the Generate staging environment and then to the Fact and Dimension tables by Fact Type.

If you are unfamiliar with how Generate defines Fact Types review the Fact Type Table page.

In a star schema database, the Fact table is a combination of the appropriate Dimension table data. The Fact table allows the user to slice and dice the data depending on which dimensions they return.

In Generate, the Fact table stores all the relevant data used by the report migration to populate the aggregated counts in the report table. Using Child Count as our example again, when the second migration (RDS) runs the data from Staging is populated into the dimension tables and ultimately into the Fact table, RDS.FactK12StudentCounts. That Fact table is also used by other reports for Homeless, Membership, etc. So, there are columns in the Fact table that are used for one report and not another.

The Fact table view will do two things. First, it will limit the results to only the columns that are relevant to the Fact Type and second, it will translate the Dimension table ID that is stored in the Fact Table back to the actual data values to make it easier to see and interact with the data.

The view uses the same column names from the Dimension tables so you can qualify your query of the view to get more specific information like all the students in a school, all the students with a specific disability type, or just a single student.

select * from [debug].[vwChildCount_FactTable]
select * from [debug].[vwChildCount_FactTable] where SchoolIdentifierSea = '1234'
select * from [debug].[vwChildCount_FactTable] where IdeaDisabilityTypeEdFactsCode = 'AUT'
select * from

Last updated

Was this helpful?