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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vanessa
Post Patron
Post Patron

Dynamically hide columns in a visual

Is there a way to dyncamically hide columns in a report?

 

Suppose i receive a file as a source which has 100 columns. The report (eg. table grid) with 100 columns will be created.

But tomorrow i receive the same file only with 40 columns, I want to use the same report but have the table grid with only 40 columns.

 

Is this possible?

1 REPLY 1
v-caliao-msft
Employee
Employee

Hi @vanessa,

 

 Do you mean the table structure are different for different day? Based on my test, if you have 100 columns in your database on the first day, and then only have 40 colums on next day, then Power BI cannot refresh data with the error
Expression.Error:The column "ColumnName" of the table wasn't found.

 

In PBI desktop, you can first build all your visuals using required columns in your table. Then go to Data tab, select your table and column, right click & Hide in report view. This will make column disappear from the column list in report view, but all your visuals will stay as it is. When exporting to csv data will be there as well.

 

Regards,

Charlie Liao

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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