Forum Discussion
How To Get X/Y Position Of Visual
I don't think it is feasible to do exactly what you're suggesting but there might be some sort of workaround. Can you show an example of how you'd expect it to look?
Hi Alexis,
Thanks for getting back to me! The photo attached might help a bit in terms of what I'm hoping to get working.
So in the first box, I want cards A and B to make up the current value (106) because they're within the box dimensions, but when B is pulled out of the box (seen in the second box), the current sum is only card A.
Originally, I was going to create a measure that will take into account the x and y positions of the card relative to the boxes, but I can't seem to find a function that retrieves those positions.
Any suggestions are greatly appreciated! Thanks.
- AlexisOlson4 years agoSuper User
Interesting concept but I don't know how it would work since you can only move the visuals around when you're editing the report, not when the end-user views it (and I'm assuming B 31 is in its own card-like visual).
However, you could control the contents of the box using a slicer instead of dragging pieces around.
- Anonymous4 years agoNot applicable
Ah I understand. I was thinking that someone would edit the PowerBI and move the visuals around, but all the other numbers would be generated based on edits to the report. Do you think this might be possible?
A slicer might not be feasible, as the example I produced is a much smaller scale of the actual tool being produced.
Thank you!