Forum Discussion
EXCEPT ALLSELECTED
- 4 years ago
Hi Anonymous ,
Please try the following measure:
INATIVO = VAR selectyear = SELECTEDVALUE ( costumers[year purchase] ) VAR _count = CALCULATE ( COUNT ( costumers[Costumers] ), FILTER ( ALL ( costumers[year purchase] ), costumers[year purchase] > selectyear ) ) RETURN IF ( selectyear <> BLANK (), _count )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hii, Samarth!!
Thank you for the answearing, but doesn't worked.
Exemple : I filter in slicer the year of 2019, so in the formula the result have to be the amount of costumers 2020,2021 and 2022.
Anonymous You mean you need count of customers for next 3 years of selected year?
- Anonymous4 years agoNot applicable
Yes.
- Samarth_184 years agoCommunity Champion
Anonymous Please try:-
Selected_year = CALCULATE ( COUNT ( costumers[Costumers] ), FILTER ( costumers, costumers[year purchase] > SELECTEDVALUE ( costumers[year] ) && costumers[year purchase] <= SELECTEDVALUE ( costumers[year] ) + 3 ) )- Anonymous4 years agoNot applicable
Srry samarth, bus doesn't worked too.
The result of the count it's like considering only 2020 and 2022.