Forum Discussion
Filter Columns in Table based on Chart Selection (Field Parameters)
hello, i have a table that i set up using field parameters. right now i have 9 factors going across the top and various stocks being listed in the rows. this works fine and i need a table as opposed to a matrix because i need to sort by each of them at times. as such i pivoted the data. the next step i would like to take is to limit the columns based on selections in other charts on the page. for example i have a bar chart that i can click on on of the factors. i would then like the table to only show that column from the field parameter instead of always showing all. is that possible? i tried creating a measure that finds the selected value but dont see a way to then limit the options in my slicer based on that..
3 Replies
- Akash_VarunaSuper User
Hi astivale Could you try these please
Capture Selected Factor: Create a measure to get the selected bar chart value:
SelectedFactor = SELECTEDVALUE('Factors'[FactorName], "All")Control Column Visibility: Create a measure to show/hide columns:
ShowColumn = IF( ISFILTERED('Factors'[FactorName]) && SELECTEDVALUE('Factors'[FactorName]) = MAX('FieldParameters'[Name]), 1, 0 )Apply Conditional Formatting:
- Add Field Parameter columns to your table.
- Use Conditional Formatting > Font Color or Background Color.
- Set color to match the background when ShowColumn = 0.
This keeps the table dynamic based on chart selection.
- astivaleNew Member
Thanks Akash_Varuna. I don't think this is exactly what i am looking for. the problem i am trying to solve for is that i have many factors, they don't all fit on the screen at once. as such when i click, i dont just want the column to be blank, i want it removed so that all the relevant columns will shift over onto the screen.
- v-aatheequeCommunity Support
Hi astivale ,
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community