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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
BigLo
Helper II
Helper II

Combine XYPlot and Scatter Plot

Hello,

 

I want to combine an XY Plot and a scatter Plot. Is it possible?

 

For example, I want to combine these 2 graphs on a single view.

 

BigLo_0-1634219244998.png

 

1 ACCEPTED SOLUTION
KerKol
Super User
Super User

It's possible with a custom visual called Deneb - - but it takes a bit of learning.  

 

More about Deneb here:

Deneb - Declarative Visualization in Power BI (deneb-viz.github.io)

 

KerKol_0-1634434542117.png

 

{
  "data": {"name": "dataset"},
    "layer": [
      {
        "mark": {
          "type": "point",
          "opacity": 0.5
        },
        "encoding": {
          "x": {
            "field": "Sale Price",
            "type": "quantitative"
          },
          "y": {
            "field": "Units",
            "type": "quantitative"
          },
          "color": {
            "field": "Project",
            "type": "nominal"
          }
        }
      },
      {
        "mark": {"type": "line"},
        "encoding": {
          "x": {
            "field": "Sale Price",
            "type": "quantitative"
          },
          "y": {
            "aggregate": "mean",
            "field": "Units",
            "type": "quantitative"
          },
          "color": {
            "field": "Project",
            "type": "nominal"
          }
        }
      }
    ]
}

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
KerKol
Super User
Super User

It's possible with a custom visual called Deneb - - but it takes a bit of learning.  

 

More about Deneb here:

Deneb - Declarative Visualization in Power BI (deneb-viz.github.io)

 

KerKol_0-1634434542117.png

 

{
  "data": {"name": "dataset"},
    "layer": [
      {
        "mark": {
          "type": "point",
          "opacity": 0.5
        },
        "encoding": {
          "x": {
            "field": "Sale Price",
            "type": "quantitative"
          },
          "y": {
            "field": "Units",
            "type": "quantitative"
          },
          "color": {
            "field": "Project",
            "type": "nominal"
          }
        }
      },
      {
        "mark": {"type": "line"},
        "encoding": {
          "x": {
            "field": "Sale Price",
            "type": "quantitative"
          },
          "y": {
            "aggregate": "mean",
            "field": "Units",
            "type": "quantitative"
          },
          "color": {
            "field": "Project",
            "type": "nominal"
          }
        }
      }
    ]
}

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




BigLo
Helper II
Helper II

I don't see anything that could correspond to my request. A suggestion?

amitchandak
Super User
Super User

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.