Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
KAATA
Helper I
Helper I

How to anonymise users in Power Query Editor

Hi all,

 

We are working on a model that shows the Power BI activity across our organisation.

We would like to anonymise the user ids, so instead of showing that user A viewed that report, we want to show that there was 1 user who viewed it.

We have found a way to do this in DAX, but the challenge is that if the model is accessed via DirectQuery (not only Live) connection, then the anonymisation fails.

Do you know a way to anonymise users by using M language in Power Query Editor?

Many thanks for your answers in advance!


1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@KAATA , check if masking can help

https://radacad.com/show-the-information-but-not-the-details-power-bi-data-masking

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@KAATA , check if masking can help

https://radacad.com/show-the-information-but-not-the-details-power-bi-data-masking

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak,
Thanks a lot for your input.
I had to do the transformation in Power Query Editor, so I used the approach in the below article:
Data Masking For Sensitive Information In Power BI - Enterprise DNA

Appreciate your input,
KAATA

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.