Forum Discussion
replacing column values based on slicer slection
- Anonymous6 years ago
Hi chotu27
I build a table like yours to have test.
We need to build a new Slicer table by Category column.
Slicer = VALUES('Table'[Category])Then build a slicer.
Build a measure to achieve your goal.
Output = VAR _selectvalue = SELECTEDVALUE ( 'Slicer'[Category] ) RETURN IF ( MAX ( 'Table'[Category] ) = _selectvalue, MAX ( 'Table'[Category] ), CALCULATE ( MAX ( 'Table'[Datamasking] ), FILTER ( ALL ( 'Table' ), 'Table'[Category] = MAX ( 'Table'[Category] ) ) ) )Result:
Default:
Select Laon Care:
You can download the pbix file from this link: Replacing column values based on slicer slection
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
chotu27 - Not quite following this.
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
That said, this might help: https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-EVERYTHING-measures-axis-legend-titles-chart-types/m-p/1027881#M444
Greg_Deckler Can you check now