Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
rmocca
Helper I
Helper I

Scatter Chart using the same column for different filters

Hi,

I have a new problem that I couldn't solve by my self yet 🙂

I have this table:

Var11.52
Var21.53
Var12.1
Var12.3
Var22.11
Var22.22

 

I need to get a Scatter Chart with Var1 as X axis and Var2 as Y axis.

Is this possible?

 

And it's possible to have slicers to select that vars from slicers?

 

Thanks!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@rmocca , Try to pivot this table and then try

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

5 REPLIES 5
PhilipTreacy
Super User
Super User

Hi @rmocca 

Please see this PBIX file for the code to pivot your data and the scatter visual with slicers.

scatter.png

 

Regards

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


amitchandak
Super User
Super User

@rmocca , Try to pivot this table and then try

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi,

I've tried this solution again, duplicating the table and I was able to create the scatter chart successfully.

Thank you.

 

Regardin selecting variables from a slicer and set them as X and Y axis, is that possible?

Hi @rmocca,
>>Regardin selecting variables from a slicer and set them as X and Y axis, is that possible?

I don't think this is possible to achieve on your sample table.

AFAIK, current power bi does not allow to use measure expressions as chart axis and it also not support to create dynamic calculated column/table based on slicer/filter selections.

For your scenario, you need to map the value with specific group values first(e.g. id 1, var1; id1, var2...), then you can use the value field on-axis and use slicer with var fields to control which value displayed.
After these steps, you can create a new table with 'var' types and create a slicer with new table fields. Then you can write a measure expression to lookup value from the raw table based on the current axis value and selected 'var' type.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thanks for your help, but I couldn't make it work.

I don't know how to apply this two things to my model.

 

I have many other reportes made with the same table, so in the momento I've started to make this changes everything stopped working.

 

I hope there is an easier way to do that simple report.

 

Thanks anyway.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.