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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
xhead
Helper II
Helper II

Scatter chart alternative

I have two measures that I want to plot over time. Average Oil ("Avg Oil (bbl/d)") and Cumulative Oil ("Cumulative Oil (bbl)"). Here is sample of the data:

 

DateAvg Oil (bbl/d)Cumulative Oil (bbl)
10/1/20171.611.61
10/2/20171.653.26
10/3/20171.614.87
10/4/20171.616.48
10/5/20171.738.21
10/6/20171.729.93
10/7/20171.6711.6
10/8/20171.6413.24
10/9/20171.6814.92
10/10/20171.5416.46
10/11/20171.7218.18

 

I can do this with a Scatter chart, but I really want a line instead of bubbles.

 

--> I can't upload a screen shot, forum isn't letting me

 

I tried using an R visual, but I can't figure out what the script should be:

 

--> my screenshot shows a continuous level line 

 

# dataset <- data.frame(Date, Avg Oil (bbl), Cumulative Oil (bbl))

 

library("ggplot2")

ggplot(dataset, aes(x = `Cumulative Oil (bbl)`, y = `Avg Oil (bbl)`)) +
geom_line()

 

Any ideas? 

 

Mike

1 ACCEPTED SOLUTION

Like this?

 

image.png



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
Greg_Deckler
Super User
Super User

Wait, why can't you use a standard Line Chart visualization?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Yeah, I wish I could upload the screen shots. 

 

A Line chart gives me two lines, one for Avg and one for Cumulative, with 0-200 on the y-axis, and dates on the X-axis.

 , I want the x-axis to show the Avg, and the y-axis to show the cumulative, one line to show the relationship of avg vs cumulative

Like this?

 

image.png



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Ok, I can do that too, except that I can't use a (DAX) measure on the Axis or in the Value. I guess that's expected?

 

I'm used to creating measures on tabular columns and hiding them. 

You can probably get there using the disconnected table trick although in your particular case that might be somewhat complicated. The disconnected table trick allows you to use a measure in places where you can't usually use a measure. See this article:

 

https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick...

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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