Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a table with multiple columns where there are "Raw" or "Cleaned" values. These will represent the same location in each visualization but would like to select between the two with a slicer. When selecting the "Raw" or "Cleaned" slicer option, the connected tables charts will adjust based on the related columns. Example of table is below.
Solved! Go to Solution.
@flyingmada - You will have to either do the switching in your measure or you can unpivot the columns. The second approach is generally not recommended for unpivoting measures. In a measure it is something like:
Measure =
VAR __Selection = MAX('Slicer'[Column])
RETURN
SWITCH(__Selection,
"Raw",SUM('Table'[Raw]),
"Clean",SUM('Table'[Clean])
)
An alternative method is to use bookmarks with buttons. (You can keep the slicer values)
Proud to be a Super User!
Paul on Linkedin.
@flyingmada - You will have to either do the switching in your measure or you can unpivot the columns. The second approach is generally not recommended for unpivoting measures. In a measure it is something like:
Measure =
VAR __Selection = MAX('Slicer'[Column])
RETURN
SWITCH(__Selection,
"Raw",SUM('Table'[Raw]),
"Clean",SUM('Table'[Clean])
)
What does the
('Slicer'[Column])
in your forumula represent?
Am i referencing the slicer? If so, how do I do this?
User | Count |
---|---|
85 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
101 | |
49 | |
42 | |
39 | |
38 |