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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors