Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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 from that filter a ColumnC should be created in the table - Table1.
Eg., If i select ColumnA in the filter, my Table1 should look like this:
New Table1
ColumnA | ColumnB | ColumnC |
A1 | B1 | A1 |
A2 | B2 | A2 |
A3 | B3 | A3 |
If i select ColumnB in the filter, my Table1 should look like this:
New Table1
ColumnA | ColumnB | ColumnC |
A1 | B1 | B1 |
A2 | B2 | B2 |
A3 | B3 | B3 |
The final goal is to create a slicer with ColumnC as well and it will show values based on selected value in Column Types slicer.
A bit change to Greg_Deckler's DAX.
ColumnC Measure = SWITCH( MAX('Table 2'[Column Types]), "ColumnA",MAX('Table 1'[ColumnA]), "ColumnB",MAX('Table 1'[ColumnB]), BLANK() )
Regards,
Lydia
ColumnC Measure = SWITCH( MAX('Table 2'[Column Types])), "ColumnA",MAX('Table 1'[ColumnA]), "ColumnB",MAX('Table 1'[ColumnB]), BLANK() )
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.
What is "the disconnected table trick"?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
142 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
213 | |
89 | |
77 | |
66 | |
60 |