Forum Discussion
Anonymous
6 years agoNot applicable
Power BI Dynamic Column Selection based on Secondary Table filter
Hi Community Members, I want to implement a solution where my aim is to achieve dynamic column selection based on the selection in Table 2. For example, the table 3 should display values for Regi...
- 6 years ago
Hi,
According to your description, i think you can not generate table dynamically by selecting slicer, but i have a workaround:
Please take following steps:
1)Add an index column to Table 1 in Query Editor.
2)Try this measure:
Measure = SWITCH ( SELECTEDVALUE ( 'Table 2'[Dimension Select ] ), "Sector", MAX ( 'Table 1'[Sector] ), "Region", MAX ( 'Table 1'[Region] ), "Employee Competency", MAX ( 'Table 1'[Employee Competency] ) )3)Choose [Index] from table 1, [Dimension Select ] from table 2 and this measure as a matrix visual:
4)Turn off 'Word Wrap' in Format/Column headers and Format/Row headers:
5)When you select one value in slicer, it shows:
Here is my test pbix file:
Hope this helps.
Best Regards,
Giotto Zhi
amitchandak
6 years agoSuper User
Not very clear. We create a measure when we want ot use dynamic value from slicer