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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
benanic
Frequent Visitor

Masked Fields from SQL Server

Hi All - I have a report which pulls from MS SQL Server 2016 and some of the fields are masked. I gave myself permissions to see the unmasked data in the database. After doing so, I refreshed a desktop file of this report then the masked data became visible so I published and I was able to see the values on service, but without having made any other changes, the masked data in the report reverted back to showing as 'xxx' and blanks in the report which is published on service. I opened the desktop file, refreshed, and the mask data was still appearing as unmasked in the desktop file, so I published to service again but the data is masked on service now. I can't figure out why it suddenly switched to being masked again on service and why the same steps will not make the data visibile when I publish to service. Any advice on this matter is greatly appreciated!

1 ACCEPTED SOLUTION
NandanHegde
Super User
Super User

Below might be the possible cause of the scenario :

1) In desktop you are authenticating to the databae via your account which has unmask rights

2) In Power BI service, your report is getting refreshed via on Premises data gateway.

The credential set up in the gateway might not have the unmask rights on the database, thereby leading to masked data becoming imported within the PowerBI service on next refresh




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

View solution in original post

1 REPLY 1
NandanHegde
Super User
Super User

Below might be the possible cause of the scenario :

1) In desktop you are authenticating to the databae via your account which has unmask rights

2) In Power BI service, your report is getting refreshed via on Premises data gateway.

The credential set up in the gateway might not have the unmask rights on the database, thereby leading to masked data becoming imported within the PowerBI service on next refresh




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.