I need to perform a simple calculation in DAX that consists of 2 steps.
Step 1: Calculate the median price change (%) per product.
Step 2: Calculate the average of all the medians calculated in Step 1 while counting each product (calculated median) only once.
Using a calculated column for Step 1 doesnt seem to work out for me because the medians from Step 1 are subject to change as soon as the user filters the table (i.e. using a date slicer) in the report.
Therefore, I will need to get both Steps performed dynamically in a measure.
I'm pretty sure the answer to: "Is there any way to achieve this?" will be "Yes". I just lack the know-how at this point and can't seem to find the answer.