Forum Discussion
Anonymous
8 years agoNot applicable
Difference between two columns in matrix visualisation
Hi, I have in a matrix a row with two columns. Row is company name, and columns are 201806 en 201807 I can make a total (setting a subtotal), but how to make a difference? Example: Company 20...
- Anonymous7 years ago
HI Anonymous,
Please try to use below formula to replace amount column and drag it to value field. then you will find diff effect apply on total level.
Diff = IF ( ISFILTERED ( Table[Date] ), SUM ( Table[Amount] ), CALCULATE ( SUM ( Table[Amount] ), VALUES ( Table[Company] ), Table[Date] = 201806 ) - CALCULATE ( SUM ( Table[Amount] ), VALUES ( Table[Company] ), Table[Date] = 201807 ) )Regards,
Xiaoxin Sheng
Anonymous
7 years agoNot applicable
Have you got the solution for this as I have the same problem in matrix view?
fletchuk
7 years agoRegular Visitor
I created new measures for each of the columns, one which summed together this year's sales, one which summed together last year's sales and a third measure which calcuated the difference between the two. I then dropped all three of my new measures into the matrix table.
Not sure if this is the most efficient way of doing this but it worked exactly as needed. The important thing appears to be creating new measures rather than new columns.