The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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?