Use the following measures to acheive that
AVG AM = AVERAGE('Table'[SalesAM])
Measure = CALCULATE(SUMX(SUMMARIZE('Table', 'Table'[product], 'Table'[State],"avg",[AVG AM]), [avg]), ALLEXCEPT('Table', 'Table'[Year], 'Table'[Product]))
SUMMARIZE('Table', 'Table'[product], 'Table'[State],"avg", [AVG AM], [avg])
CALCULATE(SUMX(SUMMARIZE('Table', 'Table'[product], 'Table'[State], "avg", AVERAGE('Table'[SalesAM])), [avg]), ALLEXCEPT('Table', 'Table'[Year], 'Table'[Product]))
Check the power bi training provided by intellipaat
Also, check out our YouTube video to known the fundaments fundamentals on Power Bi