Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |