Forum Discussion
ALLEXEPT function doesn't work with date slicer
- Anonymous3 years ago
Hi Anonymous ,
Is [Nombre Imapye] a measure or a column?
If it's a measure, please try
AAA = SUMX ( FILTER ( ALL ( Impaye ), [IdPretAide] = MAX ( Impaye[IdPretAide] ) ), [Nombre Impaye] )If it's a column, please try
AAA = SUMX ( FILTER ( ALL ( Impaye ), [IdPretAide] = MAX ( Impaye[IdPretAide] ) ), SUM ( Impaye[Nombre Impaye] ) )If you still have doubts, provide some dummy sample data, along with the desired results. If [Nombre Impaye] is a measure, please provide a description of this formula. Remember to protect data privacy.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Sorry, i did not understand your problem. What do you want to see?
I want to calculate the of sum of "impaye" by "idpretaide", i used the function allexecpt to group the sum of "impaye" by "idpretaide", it work in total, but when i filter with date slicer, it give me the total, i need to have the sum of "impaye" by "idpretaide" working with the slicer code date.
- andhiii0798453 years ago
Solution Sage
Add to your DAX a variable which calulated the total for the date range.
- Anonymous3 years agoNot applicable
I added this :
AA =VAR EndDate = MAX( Impaye[Code Date] )VAR StartDate = MIN( Impaye[Code Date] )VAR A = CALCULATE(SUMX(Impaye,Impaye[Nombre Impaye]), 'Impaye'[Code Date] >= StartDate && 'Impaye'[Code Date] <= EndDate)VAR Result = CALCULATE(A,ALLEXCEPT(Impaye,Impaye[IdPretAide]))it work in total : but i want to display the total in line : all line of "AA" must be 10 and not 1;1;1 ... :