Forum Discussion

skhong's avatar
skhong
New Member
4 years ago

Matrix - Create a measure with data from matrix and another table

Hi Everyone, I would like to create a measure to calculate the inventory holding of individual model number which involves data from two tables (DailyItemSales and DailyStockBalance), date column in both tables have different names. The unique identifier of both tables is UPC.  Below is what I would like to achieve:
1) A slicer to select a single date for stock balance in a matrix, date data = snapshotdate. 
2) A separate slicer to select a date range for DailyItemSales to get past 7 days sales, date data = reportDate. 
3) to calculate inventory holding = inventory in Hou / Past 7 days.
How do I create a measure to select only columns with warehouse with named "Hou" in a matrix (as below) to divide by past 7 days sales from another table with different date selection? Any answer is appreciated. Thank you. 


Table

Matrix

 

 

 

2 Replies