Forum Discussion
Shrey03
2 years agoRegular Visitor
Incorrect values using Sumx function
Hi All, I have Base table - Table 1 (Screenshot below) and derived - Table 2 (Screenshot below) where SumColumn1 and SumColumn2 totals are coming correctly whereas the highlighted value sum is no...
- 2 years ago
You can try ...
TestNum = var _vTable = SUMMARIZE( Sheet1, Sheet1[Type], Sheet1[Category], "_value", SUM(Sheet1[Column 2]) - SUM(Sheet1[Column 1]) ) Return SUMX( _vTable, ABS([_value]) ) * 100
jgeddes
Super User
2 years agoYou can try ...
TestNum =
var _vTable =
SUMMARIZE(
Sheet1,
Sheet1[Type], Sheet1[Category],
"_value", SUM(Sheet1[Column 2]) - SUM(Sheet1[Column 1])
)
Return
SUMX(
_vTable,
ABS([_value])
) * 100