Hello,
I have a specific case where I need your help. I want to assign for a certain group of sellers the sales total of the whole transaction where they were involved. Does anyone have an idea how I can solve this scenario with Dax.
Measure =
VAR VisibleTransactionID =
VALUES ( transactions[transaction_id] )
VAR Result =
CALCULATE (
VAR TransactionTable =
transactions
VAR SalesPerTransactionID =
ADDCOLUMNS (
TransactionTable,
"@Sales", [Total Sales]
)
VAR Result = SUMX ( SalesPerTransactionID, [@Sales] )
RETURN
Result,
VisibleTransactionID,
REMOVEFILTERS ( transactions )
)
RETURN
Result
2 Likes
Thanks @AntrikshSharma , that is exactly that i need
1 Like