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.
Hi All,
I have a simple a slicer with list of Products and 2 Bar charts with Products and total quantity. I have turned off the interaction between the Product slicer and one of the bar chart. My requirement is to give a different colour to the slicer selected product in the barchart. I was thinking of writing a measure that would give a different Hex code if the Product in the bar chart is same as the selected value in the slicer. But I can't seem to get it to work.
I wrote this measure to get the slicer selected value in the barchart (as a tooltip) but doesn't give the correct value.
I also tried selectedvalue() instead of Min() but got blank result.
Please suggest a correct measure that would let me get the slicer selected product in the Product by quantity barchart.
Thanks
Jaco
Solved! Go to Solution.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Thank you @ThxAlot @Ahmedx for the suggestion. I was aware that a separate dimension could be a possible solution, I was more curious on why the ALLSELECTED() wasn't working. Per my understanding, ALLSELECTED() should have retained the Product from the slicer (external of visual) but ignore the row level filter of Product from the visual.
Please note that my model had interaction turned off between the slicer and the bottom barchat. @ThxAlot If I do this in your setup, then the colouring fails.
Any idea why the measure that I had written in the post is failing ?
Thanks,
Jaco
read about Auto Exist
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
you have to create a separate dimension table for the slicer,
and only then will you succeed
DimProduct= DISTINCT(Table'[product])
User | Count |
---|---|
84 | |
80 | |
70 | |
47 | |
43 |
User | Count |
---|---|
108 | |
54 | |
50 | |
40 | |
40 |