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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Bokazoit
Responsive Resident
Responsive Resident

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

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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