Forum Discussion
powerbi_user1
8 years agoFrequent Visitor
Create a dynamic column based on slicer selection
I have two tables: Table 1 ColumnA ColumnB A1 B1 A2 B2 A3 B3 Table 2 Column Types ColumnA ColumnB I have a slicer for Columns Types and based on selection...
Greg_Deckler
8 years agoCommunity Champion
ColumnC Measure =
SWITCH(
MAX('Table 2'[Column Types])),
"ColumnA",MAX('Table 1'[ColumnA]),
"ColumnB",MAX('Table 1'[ColumnB]),
BLANK()
)- powerbi_user18 years agoFrequent Visitor
Thanks for your reply Greg. But I want to use ColumnC as a slicer anda measure cant be used as a slicer.
Also, using column C as an independent column shows only the maximum value for the column selected in the slicer.
- Greg_Deckler8 years agoCommunity ChampionColumns cannot be dynamic based upon user selection. Just use the disconnected table trick to use your measure as a slicer.
- Anonymous4 years agoNot applicable
What is "the disconnected table trick"?