Forum Discussion

JVolk's avatar
JVolk
Frequent Visitor
8 years ago

Difference between Columns dynamically

Looking for a measure formula to dynamically calculate the difference between Qtr 3 and Qtr 4.  

5 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Are Qtr 3 and Qtr 4 columns or measures?

     

    If they are measures, you could just do:

     

    Measure = [Qtr 4] - [Qtr 3]

    If they are columns, then are these being summed or is there some other aggregation going on? Whatever the aggregation (let's assume SUM) then it would look like:

     

    Measure = SUM([Qtr 4]) - SUM([Qtr 3])

    Otherwise, there is not enough information to properly articulate a solution.

    • JVolk's avatar
      JVolk
      Frequent Visitor

      Sorry I should have been more specific. My columns are date fields summarized by quarter.

      • Greg_Deckler's avatar
        Greg_Deckler
        Community Champion

        So how are you getting a whole number value from a Date field? Can you post some sample data?