In order to use data mining to detect errors in your data warehouse, you need to follow a systematic and iterative process. This includes defining the problem and objective, selecting the data and method, preparing and transforming the data, building and training the model, applying and interpreting the model, and implementing and monitoring the solution. For example, when selecting data and method, you need to consider which data mining tool to use (e.g. SSAS, R, RapidMiner) and which data mining method (e.g. association rule mining, classification, clustering, regression, correlation). Additionally, when preparing and transforming data, you must clean, filter, sample, aggregate, normalize, and encode it. Furthermore, when building and training the model you need to create association rules, classification rules, clusters, regression equations or correlation coefficients. Finally when applying and interpreting the model you should identify patterns or trends revealed by the data mining model as well as any errors or anomalies. With this process in place you can correct errors in your data warehouse and monitor its impact.