This is more a question of curiosity. In PowerBI, in the analytics pane, you can apply the following dividing lines/areas:
For the question, my PBIX file
- Symmetry Line
- Ratio Line
- Trend Line
See example:
PowerBI Viz
I noticed a post from a Tableau user, where they were able to create the dividing symmetry line. This doesn't appear possible in PBI, only the line between the two shaded areas:
Tablaeu Viz
In Deneb, I was only able to achieve the regression / trend line, but I'm wondering if it's possible to also calculate the symmetry and ratio lines?
Deneb/PBI viz
Here is the link to my PBIX file - any help or guidance is greatly appreciated :)
{
"data": {"name": "dataset"},
"encoding": {
"x": {
"field": "Actual",
"type": "quantitative",
"scale": {"zero": false},
"axis": {
"format": "0%",
"formatType": "pbiFormat"
}
},
"y": {
"field": "Estimate",
"type": "quantitative",
"scale": {"zero": false},
"axis": {
"format": "0%",
"formatType": "pbiFormat"
}
},
"color": {
"field": "Sign",
"type": "nominal",
"scale": {
"range": ["black", "red", "blue"]
},
"legend": null
}
},
"layer": [
{"mark": {"type": "point"}},
{
"mark": {
"type": "line",
"color": "firebrick"
},
"transform": [
{
"regression": "Estimate",
"on": "Actual"
}
],
"encoding": {
"x": {
"field": "Actual",
"type": "quantitative"
},
"y": {
"field": "Estimate",
"type": "quantitative"
}
}
}
]
}
I've searched the internet for documentation, but I've not seen anything on this topic, so I'm wondering now if it's even possible?
I think this might demonstrate what I need - I'll do some more thinking: [Vega-lite Linear Regression][1]
I believe the symmetry shade in PBI is just a line that splits the chart in half when the x and y axis are the same. How does this look?