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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Bokazoit
Continued Contributor
Continued Contributor

Using OLS but need to show one column if OLS is true and another if OLS is false

To make sure that GDPR is secure I use OLS and add people to see data if they may see it.

 

But I would like to create it another way around...

 

If the person watching the report is not part of those who is allowed to watch GDPR secure reports those columns are switched with another generic column. i.e

 

NameCalls
Michael200
Anna250

 

The above column - Name, uses the Name column from the Agent table. If the person is not allowed the Name column will be switched to the NameId colum:

 

NameCalls
Name 1200
Name 2250

 

So the users can still see the reports and the numbers, but the names are hidden if they are not allowed.

 

Any ideas?

1 REPLY 1
lbendlin
Super User
Super User

In your data model carry a copy of the fact table with all PII removed. Offer this table for general reporting.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI 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.