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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MrBenn
Helper II
Helper II

Creating a chart with user defined axis

Hi


Can anyone help with this query? I need to produce a scatter which relies on the user defining x and y axis (using slicers) - is there any way to do this without creating a summarised table of data from the original?  The data is formatted a little like below:

 

Category             Score

1                          5

2                          4

3                          3

3                          2

4                          3

4                          4

5                          3

6                          4

6                          6

 

I need the user to pick a category 1-6 for 'x axis' and then a category 1-6 for 'y axis' which then plots the score on a scatter.

 

Thanks for any help

1 ACCEPTED SOLUTION

Hi @MrBenn,

 

With current table format, it might not possible to create such a scatter chart. You may need to generate a new calculated table with a new structure.

Test3 =
FILTER (
    CROSSJOIN (
        FILTER ( Test2, Test2[Name] = "Actual" ),
        SELECTCOLUMNS (
            FILTER ( Test2, Test2[Name] = "Expected" ),
            "Name2", Test2[Name],
            "Phase2", Test2[Phase],
            "Score2", Test2[Score]
        )
    ),
    Test2[Phase] = [Phase2]
)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @MrBenn,

 

I get below result if directly placing [category] onto X-axis and Y-axis, and plotting [Score] into Details.

1.PNG

 

Is that what you want? If not, would you please show us your desired output? If you want to show total score per Category in scatter chart, I think you should create a summarised table.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Yuliana


Thank you for your reply, but I wasn't very clear and this isn't what I was looking for.  I have the data table below and the scatter chart I'd need.  Does this help?  I'm thinking I may have to use parameters, but I'm not sure how to do this.

 Untitled.png

Hi @MrBenn,

 

With current table format, it might not possible to create such a scatter chart. You may need to generate a new calculated table with a new structure.

Test3 =
FILTER (
    CROSSJOIN (
        FILTER ( Test2, Test2[Name] = "Actual" ),
        SELECTCOLUMNS (
            FILTER ( Test2, Test2[Name] = "Expected" ),
            "Name2", Test2[Name],
            "Phase2", Test2[Phase],
            "Score2", Test2[Score]
        )
    ),
    Test2[Phase] = [Phase2]
)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.