The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I wanted to ask if there is way to have one single scatter chart w/ dynamic XY axis selection. Please see below:
I'd appreciate if you could share any insights/tips/tricks/resources. Thanks!
I'm confused on your description, could you please clarify the meaning of "Query1, 2, 3" and "Col1~5"? And which columns are the three slicers based on?
Regards,
Jimmy Tao
Hey Jimmy,
So query1, 2 and 3 refer to 3 different query tables.
and Col1 - 5 refer to columns within these three tables.
see attached picture.
So does X-axis and Y-axis take the columns from two tables? Could you share more details?
Regards,
Jimmy Tao
Hey Jimmy,
Please see attached pbix
My original plan was to be able to:
So, the goal was to plot, for example - mass vs intrusion for Section 1 and Section 2
---
After spending some time trying to figure out a good approach I ended up transforming my data as follows:
Now I'm able to dynamically choose what sections to compare (using multi-select slicer) and what Xvalue and Yvalue to plot (using the single select slicer), but when I plot Xvalue vs Yvalue the scatter chart says 'Can't determine relationship between fields'.
I have tried defining relationships, but it still won't plot Xvalue vs Yvalue, and I'm not sure why!
In the attached file - you'll see I'm able to pull all the necessary data - just not able to plot it!
I'd appreciate if you could take a quick peek at it and let me know if I'm missing something.
Thanks!!
Refer to this posts on how to dynamically change the attribute. Its not exactly what you need but the idea is same.
https://community.powerbi.com/t5/Desktop/Dynamic-change-in-X-Axis/td-p/86167
https://community.powerbi.com/t5/Desktop/Change-x-axis-categories-dynamically/m-p/280583
If it helps, mark it as a solution
Kudos are nice too