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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
laurence39
Regular Visitor

The right way to create visualization from stock prices comparison?

Hi all,

 

I am asked by my boss to use power bi to compare stock prices.

What I've done was download different histocial data csv files from Yahoo Finance.

Afterwards, I tried to creat a line chart by inserting date and close.price from one stock table and joined by another stock's close.price. My line chart ended up with a stright line and another one has the zigzag line (which i believe is right).

 

Can anyone shed some light on this? (Question posted from Taiwan)

Thanks for anyone helping out!

 

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi

Could you kindly show us some data and what result you want? So we can come to a more effective solution.

Anyway, according to your description, I make a test on my site with two stock table containing close.price.

My attempt is to get a line chart which compares close.price of different stocks based on the same date. Does it meet your goal? Please follow these steps

1.Create a calendar table and make relationships between the calendar table and two stock tables

Table 2 = CALENDARAUTO()

2.Add the date field in Axis, and add two close.price field from two stock table to the value.

If you have any question, please feel free to ask me.

Best Regards

Maggie

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Tks Jessica, its a very nice template for reference : )

v-juanli-msft
Community Support
Community Support

Hi

Could you kindly show us some data and what result you want? So we can come to a more effective solution.

Anyway, according to your description, I make a test on my site with two stock table containing close.price.

My attempt is to get a line chart which compares close.price of different stocks based on the same date. Does it meet your goal? Please follow these steps

1.Create a calendar table and make relationships between the calendar table and two stock tables

Table 2 = CALENDARAUTO()

2.Add the date field in Axis, and add two close.price field from two stock table to the value.

If you have any question, please feel free to ask me.

Best Regards

Maggie

Thank tou Maggie, you are very kind!

I wanted to compare different stocks by pulling data from Yahoo Finance and create a line chart.

I also found out someone has done similar things. 

Can check this link : http://blog.janmulkens.be/plotting-time-series-in-power-bi/

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.