Forum Discussion

TinaKL's avatar
TinaKL
Copper Contributor
May 30, 2020

creating a graph with the same data for multiple companies

how do you create a graph that has the same data over time for multiple companies?

I want to plot these ratios over time and see them for different companies in one place

eg CAPEI, Enterprise Value etc are constant column names but the ID will change and when i use a graph the ID becomes the x axis or the ID and date in sequence - both of which are not what i want.

this is a sample of the bigger data set

thank you in advance

Tina

 

ID#dateCAPEIenterprise valuePrice/Operating EarningsPrice/Operating Earnings
575031/1/2010-0.62-2.82-0.29-0.29
575028/2/2010-0.662-2.82-0.309-0.309
575031/3/2010-0.882-3.571-10.538-10.538
575030/4/2010-1.442-3.571-17.224-17.224
575031/5/2010-1.255-3.571-14.995-14.995
575030/6/2010-0.68-7.795-13.589-13.589
575031/7/2010-0.807-7.795-16.137-16.137
575031/8/2010-0.632-7.795-12.629-12.629
575030/9/2010-0.672-11.158-18.643-18.643
575031/10/2010-0.609-11.158-16.888-16.888
575030/11/2010-0.634-11.158-17.6-17.6
575031/12/2010-0.559-16.87-1.054-1.054
621631/1/201016.1718.10911.59211.773
621628/2/201017.1847.86713.24213.426
621631/3/201020.0147.86715.42315.637
621630/4/201021.4317.86716.45716.685
621631/5/201017.9018.83515.6415.878
621630/6/201015.6218.83513.64813.856
621631/7/201015.7668.83513.69713.905
621631/8/201014.6398.90813.65413.872
621630/9/201016.3358.90815.23615.48
621631/10/201016.2978.90815.20115.444

3 Replies

  • mathetes's avatar
    mathetes
    Gold Contributor

    TinaKL 

     

    Have you tried using a Pivot Table to initially summarize the data, and then have a Pivot Graph developed directly from that Pivot Table?

     

    I added a column for month to what is otherwise your table, and just quickly let Excel summarize the CAPE values in this attached Pivot Table and adjoining graph. Is this the kind of thing you're wanting to do?

    • TinaKL's avatar
      TinaKL
      Copper Contributor

      thank youmathetes

      I had not thought of this and it does work for one of the ratios/columns and I think I will have to go this route 

      but i still cant see multiple ID#s with the multiple ratios/columns over time - perhaps I need 3D ?

      tina

      • mathetes's avatar
        mathetes
        Gold Contributor

        TinaKL 

         

        The Pivot Table will work for many columns and many ID#s. I used just the ones you provided to illustrate, not to limit.

        And one good thing, you can't break the data by playing around with the settings for the Pivot Table...

         

        If you want more help, you'll need to upload a more complete sampling (or the full data set, so long as there's nothing confidential in it)....and I or someone else can show you a more complete example. It would also help if you can describe more fully the kind of graphing you want---i just let Excel pick the first graph that is supplied.....

Resources