What I am trying to do is to create an additional column in a matrix visualization that looks at a UNIT ID and gets the AVG COST of that UNIT for a specific QTR by looking in the PRICING table and getting the AVG COST during that period. (A unit may have a price change in that qtr, multiple price changes, or a previous qtr change).
I have been going through different formulas and nothing gives me what I am expecting.
Here are my tables and the current MATRIX. Any assistance would be appreciated on how to create a measure on the AVG COST PRICE.
Thanks
I have 3 tables:
a) PRODUCT NAMES
UNIT ID, UNIT NAME
b) SALES
UNIT ID, YEAR, QTR, QTY UNITS SOLD, TOTAL $ SOLD
c) COST CHANGES
UNIT ID, UNIT COST, PRICE CHANGE
I have pulled a MATRIX VISUALIZATION together that correctly shows QTY UNITS SOLD, TOTAL $ SOLD and a measure using SUMX showing AVG SALE PER UNIT by YEAR and QTR. Seems to work Perfectly.
YEAR QTY UNITS SOLD TOTAL $ SOLD AVG SALES PER UNIT
2015
QTR 1
PRODUCT 1
QTR 2
PRODUCT 1
PRODUCT 2
...
I have been going through different formulas and nothing gives me what I am expecting.
Here are my tables and the current MATRIX. Any assistance would be appreciated on how to create a measure on the AVG COST PRICE.
Thanks
I have 3 tables:
a) PRODUCT NAMES
UNIT ID, UNIT NAME
b) SALES
UNIT ID, YEAR, QTR, QTY UNITS SOLD, TOTAL $ SOLD
c) COST CHANGES
UNIT ID, UNIT COST, PRICE CHANGE
I have pulled a MATRIX VISUALIZATION together that correctly shows QTY UNITS SOLD, TOTAL $ SOLD and a measure using SUMX showing AVG SALE PER UNIT by YEAR and QTR. Seems to work Perfectly.
YEAR QTY UNITS SOLD TOTAL $ SOLD AVG SALES PER UNIT
2015
QTR 1
PRODUCT 1
QTR 2
PRODUCT 1
PRODUCT 2
...