Hi guys,
I have a table with competitors and own company's sales units as well as prices.
Trying to use aggar function to calculate the competitors 's sales units.
as you see at the screenshot, for some reason , I fail to get expected number. aggar return me null
what I am using is
Sum({<Supplier={'competitor'},Month = {"$(=Max({1}Month))"}>} [QTY Each])
*
(aggr(avg({<Month = {"$(=Max(Month))"},[Supplier]=-{'Competitor'}>} [Competitor Price]),[Product level])
anything I miss?
thanks
![coloful_architect_1-1631571713916.png coloful_architect_1-1631571713916.png](https://community.qlik.com/t5/image/serverpage/image-id/61838i90FE7E8280837EB6/image-size/medium?v=v2&px=400)
![coloful_architect_3-1631571974340.png coloful_architect_3-1631571974340.png](https://community.qlik.com/t5/image/serverpage/image-id/61840i61385B0B6085FF11/image-size/medium?v=v2&px=400)