I have this expression, it calculates the avg interval days between two dates, between all years disrespect of the selection, aggr by year and product (NMCULTIVAR). It give me the correct results as expected.
The problem is that I need to show this measure with other measure in a table with the products, but only products sold on selected years. As Im using YEAR= to calculate the avg, the table is bringing all products sold ignoring the selected YEAR.
There is anyway to avoid showing all products on this table but at the same time use this measure to show the product avg interval.