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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
rahul_dhamnani
Regular Visitor

How To: Delete Sensitive Columns?

Hi Guys!

 

I am new to PowerBI and my company needs to know few things for sure before we can start publishing reports. I am using DirectQuery to query my database and bring few tables from SQL database. Due to sensitivity of data, I want to avoid bringing few columns into PowerBI. 

 

The option I see as a easy fix: bring tables in and then delete columns that I do not require. For this option, I want to know if - using DirectQuery/Import function I bring entire table in and delete few sensitive columns, will that result in PowerBI not bringing those columns into its environment in anyway. And if I publish these reports, am I 100% sure those deleted columns wont get published in anyway? Specially, in-case of Import function.

 

Other easy fix: write custom SQL for bring in tables. 

 

Which would be the best suggested option considering the sensitivity of data? 

 

Thanks for your help!!

 

Best, 
Rahul Dhamnani

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @rahul_dhamnani,

 

Just for some expand of smoupre's point, in "direct query" mode, you can also use "Table.SelectColumns" function to hide the sensitive columns.

 

Add a custom steps and use table.selectcolumns to choose the displayed columns.

 

Reference:

Table.SelectColumns

 

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @rahul_dhamnani,

 

Just for some expand of smoupre's point, in "direct query" mode, you can also use "Table.SelectColumns" function to hide the sensitive columns.

 

Add a custom steps and use table.selectcolumns to choose the displayed columns.

 

Reference:

Table.SelectColumns

 

Regards,

Xiaoxin Sheng

Greg_Deckler
Community Champion
Community Champion

If you use Import, you can remove the columns as part of the Power Query and they will not be imported into the model. In DirectQuery, you would have to write SQL.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.