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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Marco_Yukon
New Member

PBI Table Visual - Expression to dynamically Hide and add columns possible ?

I have a requirement to dynamically hide or add a column in a PBI table visual based on a column selection list that can be toggled on or off.

Example

Table Visual:

Col1, Col2, COl3, Measure1, Measure2

 

filter selection

[x ] Col1

[x] Col2

[ ] Col 3

[X] Measure 1

[ ] Measure 2

 

If I filter on Col 1 and Col2 as per above the table visual would change to:

Col1, Col2,  Measure1  (leaving Col3 and Measure 2 out)

Measure1 in this case would auto aggregate to the Col1 and Col2 combined aggr level.

 

Is this possible? 

 

 

 

 

 

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @Marco_Yukon ,

 

Is this you want?

vchenwuzmsft_0-1661500461838.gif

 

If yes ,please use what if parameters. And pbix file in the end you can refer.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chenwuz-msft
Community Support
Community Support

Hi @Marco_Yukon ,

 

Is this you want?

vchenwuzmsft_0-1661500461838.gif

 

If yes ,please use what if parameters. And pbix file in the end you can refer.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.