Forum Discussion
CMOLINA
2 years agoFrequent Visitor
Calculate Price Base in a Column
I have this problem to calculate Price divide Base
This issue is when the column "Rango Tamaños" is order by another column
I need calculate Index Price but my calculate works with the base
thanks
pls try this
Index Price YTD = VAR _price= [YTO PRICE VOL] ver _price_base = CALCULATE([YTO PRICE VOL], 'CATALOG'(Rango TamaAos]="501-1000") RETURN DIVIDE(_price, _prlce_base) ------------------or-------- Index Price YTD = VAR _price= [YTO PRICE VOL] ver _price_base = CALCULATE([YTO PRICE VOL], FILTER(ALL('CATALOG'),'CATALOG'(Rango TamaAos]="501-1000") RETURN DIVIDE(_price, _prlce_base)
4 Replies
- Ahmedx
Super User
what should be the expected result?
- Ahmedx
Super User
pls try this
Index Price YTD = VAR _price= [YTO PRICE VOL] ver _price_base = CALCULATE([YTO PRICE VOL], 'CATALOG'(Rango TamaAos]="501-1000") RETURN DIVIDE(_price, _prlce_base) ------------------or-------- Index Price YTD = VAR _price= [YTO PRICE VOL] ver _price_base = CALCULATE([YTO PRICE VOL], FILTER(ALL('CATALOG'),'CATALOG'(Rango TamaAos]="501-1000") RETURN DIVIDE(_price, _prlce_base)