This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Prevents "Data Decay" where decimals are stripped during import. | |
| Critical for pH (7.5 vs 75) and Conductivity readings. | |
| */ | |
| #"Changed Type with Locale" = Table.TransformColumnTypes( | |
| #"Promoted Headers", | |
| { | |
| {"ph", type number}, | |
| {"Hardness", type number}, | |
| {"Solids", type number}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Author: [Your Name] | |
| Purpose: Industrial Data Cleaning - Handling missing sensor data | |
| Technique: List.Accumulate (Functional Programming in M) | |
| */ | |
| let | |
| // Define columns requiring imputation (e.g., pH, Sulfate, etc.) | |
| ColsToFix = {"ph", "Sulfate", "Trihalomethanes"}, | |
| // Recursive loop to replace nulls with calculated mean per column |