Power Query - anonimize values?

SOQLee

Board Regular
Joined
Mar 18, 2015
Messages
58
Office Version
  1. 365
Platform
  1. Windows
Is there a way to anonymize email addresses recorded as the USERID?
 
Last edited:

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I'm preparing Excel data to load to SPSS; and need to retain an ID column to identify each observation; "data confidentiality" rather than "anonymizing values" might be a better description of what I'm trying to do. Wondering if I could avoid a few steps.

A solution might be to add an index column to the Excel dataset; one that would number and identify duplicate UserIDs; then in Power Query create a new ID column by combining the index number to text, 'Anon'. Can the index be created in Power Query?

Index | ID|

1 | Anon1|
2 | Anon2|
3 | Anon3|
4 | Anon4|
4 | Anon4|
5 | Anon5|
.
.
.










Why don't you just delete them?
 
Upvote 0
This is more like what I'm after...


|Index | UserID| ID|


1 | aaa@email.com| Anon1|
2 | bbb@email.com| Anon2|
3 | ccc@email.com| Anon3|
4 | ddd@email.com| Anon4|
4 | ddd@email.com| Anon4|
5 | eee@email.com| Anon5|
.
.
.
 
Last edited:
Upvote 0
One way:
n. Menu: Icon/Function
1. Add Column: Add Index Column
2. Store the Query as Query1
3. Right-click on Query1 and select Reference and change the name as Query2
4. Select the e-mail and index column and
5. Home: Remove columns/Remove Other Columns + save Query2
6. Right-click on Query1 and select Reference and change the name as Query3
7. Remove e-mail (keep the index column as the UserID)
//Ola


This is just a simple example.
There are several ways to scramble/code a email-address; shifting each letter, have a separate replacements table, etc
It's just a matter of how secure it must be.
 
Upvote 0

Forum statistics

Threads
1,216,113
Messages
6,128,905
Members
449,477
Latest member
panjongshing

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top