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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
shjuanpark
Frequent Visitor

Dynamic column based on slicer selection of a column in the same table power bi

Hi I am trying to create a power bi report with a list in a sharepoint.

 

The list consists of 26 columns for example; A-Z.  Column Z has a yes and no values and based on Column Z value selected by slicer, I want to show different columns.

 

So in the power bi report, when nothing is selected,

A B C D E ...J

 

When Yes is selected by slicer, which is a column from the same table, i want to show

K L M N

 

I have only one dataset available in the power bi which is directly connected to shaerpoint list.  is there an idea to do so?

1 ACCEPTED SOLUTION

Hi @shjuanpark 

If I understood you correctly and you are talking about conditional hiding columns, unfortunately this functionality is unavailable.
Here are some ideas about this issue you can vote for them :

https://ideas.fabric.microsoft.com/ideas/search-ideas/?q=hide%20matrix%20columns%20&forum=2d80fd4a-1...

As an alternative, you can use bookmarks.
Add a button for your selection, prepare 2 matrixes, and switch between them.

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

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

This can be achieved by data modeling.
Change the relationship direction from single to Both it will work.

Thank you for your answer.  But it is not very clear for me to understand.  Can you ellaborate a little more about how to do so?  it will be very appreciated.

Anonymous
Not applicable

Refer to the below Screenshot.

anilkapkoti_0-1692609978417.png

 

Thank you for your answer.  I wanted to remove some of the columns in the table and show different columns when a slicer is selected.  I might be doing wrong, but switching views by bookmark seems a possible alternative.  Thank you very much though!

Glad to help 😊

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
shjuanpark
Frequent Visitor

@Ritaf1983 The table I have is like below.

I want to have slicer with Critical Column and when No is selected, i want to show 

Machine#, Progress, Critical, Committed Finish Date, Estimated Finish Date.

 

And when Yes is selected in the slicer, i want to show Machine #, Delay Hours, Latest Status, Detailed Status Columns of machine A and C.

 

Can you please take a look and provide me with an insight?

 

 

Machine#ProgressCriticalCommitted Finish DateEstimated Finish DateDelay HoursLatest StatusDetailed Status
AWrapupYes8/21/20238/25/202350Test C ran

Test A ran

Test B ran

BPerformance CheckNo8/21/20238/21/2023---
CAdjustmentYes8/31/20239/30/2023100Plan C done, wait for result

Plan A done

Plan B done

Hi @shjuanpark 

If I understood you correctly and you are talking about conditional hiding columns, unfortunately this functionality is unavailable.
Here are some ideas about this issue you can vote for them :

https://ideas.fabric.microsoft.com/ideas/search-ideas/?q=hide%20matrix%20columns%20&forum=2d80fd4a-1...

As an alternative, you can use bookmarks.
Add a button for your selection, prepare 2 matrixes, and switch between them.

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

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @shjuanpark 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors