Forum Discussion
Anonymous
4 years agoNot applicable
Difference of Rows
working on a project where I want to create measure/DAX of price difference between brands.Using the following data I want to create the price diffrence between Brand A with All other brands for regi...
amitchandak
4 years agoSuper User
Anonymous , A new column for price of A and then you can take a diff
A price = maxx(filter(Table, [region] =earlier( [region] ) && [Brand Name] ="A") , [Price])
diff = [Price] -[A price]
a measure, if needed
A price = maxx(filter(allselected(Table), [region] =max( [region] ) && [Brand Name] ="A") , [Price])
Anonymous
4 years agoNot applicable
Thank You Amit,
This is working perfact up to region level filters but, when I tried to calculate it at branch and terittory level ( level down the region) then there is minor deviation in the calculation.
request you to please guide me how can I calculate a measure so that it works for region, branch, terittory filters as well as time filters.