Forum Discussion

AutoJL's avatar
AutoJL
Helper II
3 years ago
Solved

Controlling Visualizations fields with slicer

Hi!

 

I am stuck with something that either is very easy ( and im just overthinking it ) or is flat out imposible ( and I just though that could be done because it is similar to other requests)

 

I have a table that compiles both the customer names of my customers as well as the specific system Serial number they have installed. 

 

Now I have created a report with a couple of pages that comes from 2 main data sources, one has the info linked to the serial number and the other to the customer name. With this table I mentioned before I can totally navigate all the visualizations with no issues and everything works just fine.... But I though "What if I bring it to the next level?" And my idea was to have a slicer where you can chose either "Serial number" or "Customer name" and then the visualizations would use said selection (I know one workaround for this is simply using the option that is not in the visualization currently in the "tooltip" field so it gets displayed when people hover above whatever visual it is but I think the other option is cleaner).

 

I believe there has to be something like the selectedvalue-switch that can be used with measures but since I am not using measures ( its just the 2 raw columns of my table) I keep coming up with DAX errors when trying to implement this method.

 What I get is "A single value for column 'Customer Name' in table 'Customer Names - SN' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."

 

Any tips or ideas on how to do this? (Or first of, Can it be done?)

 

Many thanks!

3 Replies