Forum Discussion

elatreille's avatar
elatreille
Icon for Helper I rankHelper I
10 years ago

Compare yearly data from one date column

Hi guys,

 

I have a sheet with actually 5 columns

1. Office

2. Year of sale (ex:2014 in a text format)

3. Month of sale (ex: January in a text format)

4. Number of sale

5. Date (date format)

 

Knowing that I have a date column, I want to use that column to display the number of sale and compare the numbers month by month. I want to have one chart with 3 columns for each month of the year.

Do I need to change the format of my excel sheet to have a column for each year? is there a better way?

 

Thanks

Eric

 

4 Replies

    • elatreille's avatar
      elatreille
      Icon for Helper I rankHelper I

      Hi Matt,

       

      This is what I did and forgot to mention.

      But still don't see how to use the date column and display the data in one chart with 3 column for the 3 years period.

       

      • MattAllington's avatar
        MattAllington
        Icon for Community Champion rankCommunity Champion

        The problem is that your date column only contains the date. You need a year column to do what you want to do.  Once you have a year column, you can put the year on the ledgened and filter for the years you want in the chart. 

         

        Take a look at my article on calendar tables in my knowledge base here http://exceleratorbi.com.au/power-pivot-calendar-tables/ 

  • v-caliao-msft's avatar
    v-caliao-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi Elatreille,

     

    You can use clustered column chart to achieve thie requirement. Drag Month of sale to Axis, Year of sale to legend and Number of sale to Value.

     

    Regards,

    Charlie Liao