Hi,
I have a calculated column , power pivot , returning a running total , (dex = index)
Which does return a running total calculated column, but but if i use addcolumns and the same in dax studio,
I just get the total reputed for each line, why? what am I doing wrong or not understanding.
Richard.
I have a calculated column , power pivot , returning a running total , (dex = index)
SQL:
EVALUATE
VAR CurrentRow = SaleT[dex]
VAR CurrentItem = SaleT[item]
VAR filteredtable =
FILTER ( ALL ( SaleT ), SaleT[dex] <= CurrentRow && SaleT[item] = CurrentItem )
RETURN
CALCULATE ( SUM ( SaleT[Sales] ), filteredtable )
Which does return a running total calculated column, but but if i use addcolumns and the same in dax studio,
SQL:
ADDCOLUMNS(SaleT,
"new" ,
CALCULATE ( SUM ( SaleT[Sales] ), filteredtable ) )
I just get the total reputed for each line, why? what am I doing wrong or not understanding.
Richard.