I have a Sales table and related dimension tables. MySales table contains columns : Week, StoreID, SalesSeasonID, ProductKey and metrics. My dimensions are related to sales table (Date,SalesSeason,Store,Product tables).
I need to find Sales Quantity (LastYear and LastSeason), as a measure You can find a sample below:
My purpose is when user selected SaleseasonID[4]
then it will return 2 as SalesQuantity
.
How can I calculate this measure by DAX formula?