Forum Discussion
User determined variable in calculation
- 4 years ago
Try changing the first calculate to this:
CALCULATE( SUM( 'PL Portfolio'[Trace Units] ), 'PL Portfolio'[Fiscal Year] <= 2020, ALL( 'PL Portfolio'[Fiscal Year] ), 'PL Portfolio'[B & M] = "B - A" )
Hi orana !
I dont know your code, but it seems that adding ALL( Date[Year] ) to variable 1 could fix the problem, adding this would make your varable 1 not be affected by your Year slicer. Make sure that the column you use on your slicer is the same that you use inside ALL().
Let me know if this helps! If it is not clear enought, please make sure to provide us the code so its easier to solve the problem.
Hey Pablo ,
I revised my post with the measure that I currently have. Let me know if this helps
Best,
Oscar
- PabloDeheza4 years ago
Solution Sage
Try changing the first calculate to this:
CALCULATE( SUM( 'PL Portfolio'[Trace Units] ), 'PL Portfolio'[Fiscal Year] <= 2020, ALL( 'PL Portfolio'[Fiscal Year] ), 'PL Portfolio'[B & M] = "B - A" )- orana4 years ago
Helper I
The measure is not working. If I use my slicer and click 2021, the measure returns blank.
- v-kkf-msft4 years ago
Community Support
Hi orana ,
I was able to return the correct result using the formula from PabloDeheza . Could you please share your example data? That will help us solve the problem faster.
Best Regards,
Winniz