Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Subtract two columns

I'm trying to do simple subtraction of two columns.  I'm creating a pay register.  I have a column with earnings, a column with deductions and want to subtract deductions from earnings to create a ne...
  • v-zhangti's avatar
    4 years ago

    Hi, Anonymous 

     

    You can try the following methods.

    Measure = 
    SELECTEDVALUE(_GroupEarnings[_EarnAmount])-SELECTEDVALUE(_GroupDeductions[_DedAmount])
    Measure 2 = 
    SUM(_GroupEarnings[_EarnAmount])-SUM(_GroupDeductions[_DedAmount])

    Both of these measures give the result of subtracting two columns.

     

    Best Regards,

    Community Support Team _Charlotte

    If this post helps, then please consider Accept it as the solution to help the other members find it more.