12 Replies Latest reply on Dec 7, 2018 7:56 AM by Chadi Atie

    How to calculate the Difference from 1 dimension and 1 measure?

    Chadi Atie

      Hello Guys,

       

      I have a dimension called Type where I only have two values: A - B

      I have a measure called Amount

       

      What I need to do is calculate the difference of values between B and A, in other words:

       

      Difference = (Amount When Type = B) - (Amount When Type = A)

       

      How could I do this in Tableau?

       

      Thanks a lot for your help,

      Chadi