4 Replies Latest reply on Dec 10, 2018 7:55 AM by Joe Oppelt

    show previous year

    MUHAMMAD MAHMOD

      Hi Tableau Community,

      Below is my sample data

       

      Year***Person
      2010Male10
      2011Male20
      2012Male30
      2013Male40
      2014Male50
      2015Male60
      2010Female11
      2011Female12
      2012Female13
      2013Female14
      2014Female15
      2015Female16

       

      i want to show bar graph showing current and previous year. Using Year show as a filter, when i select year 2011, i want the result as per below

       

      if i select year 2012,  i want the result as per below

      Appreciate if you can help me.

      Thanks