Anonymise a dataset
Tip
You can get random company names from:
You can get random person names from:
-
Export all Dim and Fact tables to Excel from pbix
- This will allow us to create a pbix that is completely independent of the original data source
- usually, copy table from data view in Power BI works better than from PowerQuery, because not truncated
- To copy table, just select it and use context menu on table
- Filters etc. work when exporting, in case you already want to limit what's to be anonymised
-
delete calculated columns in Excel
-
anonymise in Excel (see Random (Company) Names)
-
Create a new pbix file for the anonymised data
-
Import all excels into power query
- If you filtered some Dim records, you might want to/have to filter the fact records given the dimensions
-
Do transformations
- Header names
- data types → they must match exactly the original tables
-
save without applying (the next step is not repeatable or undoable)
-
Apply (recheck relationships and visuals)
-
Create Relationships