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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
marslnn
New Member

Hiding column based on selection in table/matrix

Hi,

 

I have slicer which has some kpi's in it. Lets say i have kpiA, kpiB and kpiC on slicer. When i select kpiC on my slicer, i want YTD column on my table/matrix to be hidden. Is there a way to achieve this simple requirement in PowerBI?

 

Thanks in advance.

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

Hi @marslnn ,

 

You could create a measure as a visual level filter.

Measure = IF(SELECTEDVALUE('Table'[kpi])="kpiC",1)

Then put the measure into the Filters on the visual. Set show items when the value is not 1.

vstephenmsft_0-1647843379889.png

 

Result:

vstephenmsft_1-1647843512714.pngvstephenmsft_2-1647843518036.png

 

 

 

Best Regards,

Stephen Tao

 

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

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @marslnn ,

 

You could create a measure as a visual level filter.

Measure = IF(SELECTEDVALUE('Table'[kpi])="kpiC",1)

Then put the measure into the Filters on the visual. Set show items when the value is not 1.

vstephenmsft_0-1647843379889.png

 

Result:

vstephenmsft_1-1647843512714.pngvstephenmsft_2-1647843518036.png

 

 

 

Best Regards,

Stephen Tao

 

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

 

 

selimovd
Super User
Super User

Hey @marslnn ,

 

can you post an example file?

In Power BI it depends so much on the data model. Otherwise I can just assume and propose some approaches that might not work for you.

 

But in general hat is possible.

 

Best regards

Denis

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.