Forum Discussion
Persistent Slicer Value Negating Row Context of Same Field
SELECTEDVALUE() doesn't invoke row context. It looks at a field and if there is one value, returns it, otherwise it returns blank or an alternate result - "Multiple Values Selected" for example.
In your image, is the field in the slicer from a dimension table or from your fact table? Here is what I think you need to do.
- Create a second slicer from a Dimension table that has the slicer values - or a disconnected table. You can create this using DAX if you want as a Calculated Table that is just VALUES(FactTable[Supplier]) if you don't have a true dim table.
- Do not create any relationships with the fact table. It is disconnected.
- In your fact table, add a measure that is SELECTEDVALUE(DisconnectedTable[Supplier]) and drop that in the 2nd column
Using a disconnected table will then require the use of that table as the slicer, which won't work for my case.
Ultimately, what I'm trying to obtain is a why to "mask" the names dynamically based on the selection within a slicer. If the selection is within the row of the table visual, only show that name, otherwise mask it as "Supplier A", "Supplier B", etc. This may not be very straightforward as initially assumed, but I appreciate any guidance you might provide.