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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
pmscorca
Kudo Kingpin
Kudo Kingpin

Conditional dynamic data masking

Hi,

thinking a customer table to query, is it possible to show/mask the customer name respect to the value of the customer type? Only for specific customer types the customer date have to be visible.

Thanks

4 REPLIES 4
Anonymous
Not applicable

Hi @pmscorca,

AFAIK, current define dynamic data masking seems not support to add conditions. You may need to create function or policies to control this feature status based on specific conditions or try to use column-level security to control the column display based on conditions.

In addition, you can also take a look at the official document define dynamic data masking part if helps:

Dynamic data masking in Synapse Data Warehouse - Microsoft Fabric | Microsoft Learn

Regards,

Xiaoxin Shneg

Hi, it seems that the dynamic data masking and the column-level security features don't allow to implement a conditional data masking respect to another column, isn't it?

Does it exist another manner to solve a such issue? Thanks

Anonymous
Not applicable

Hi @pmscorca,

Perhaps you can take a look at the security policy, you can setting a condition on it to control the DDM effects:

CREATE SECURITY POLICY (Transact-SQL) - SQL Server | Microsoft Learn

Regards,

Xiaoxin Sheng

Hi, it seems that using a security policy I couldn't satisfy the business requirement. Thanks

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Free Fabric Certifications

Free Fabric Certifications

Get Fabric certified for free! Don't miss your chance.

January Fabric Update Carousel

Fabric Monthly Update - January 2026

Check out the January 2026 Fabric update to learn about new features.

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.