I have 4 tables Calendar
, Products
, Region
, and Sales
. Then I create the relationship between 4 tables through
Region.Region_code
->Sales.Region_Code
Product.Product_wid
->Sales.Product_wid
Calendar.Cal_Row_wid
->Sales.Date_wid
Then I create 2 slicers Date
and Month
:
I would like to write a measure to calculate the Total quantity_rcs
(which belongs to table Sales
) for all order from the beginning up to current date (which characterized by Date
and Month
; both of them belong to Calendars
).