Forum Discussion
Anonymous
6 years agoNot applicable
Issue with sumx
Hello all, I've tried to put this in many ways by my own, but i'm still struggling to solve this problem. Sorry by advance if it seems like a beginer question. I hope somebody knows the answer h...
- Anonymous6 years ago
Thanks lot for your help,
I found the solution it's :
Rouge2 =SUMX (DISTINCT('Lot 2'[Competence]),CALCULATE (VAR CC =SUMX('Lot 2','Lot 2'[XP]-'Lot 2'[Prérequis])VAR AA =IF ( CC <0,0,QUOTIENT(CC, 12) + 1)VAR BB =IF ( AA >= 5,5*SUMx ('Lot 2','Lot 2'[Weight]), AA * SUMX ( 'Lot 2','Lot 2'[Weight]) )RETURNBB,Codelot2[Couleur]= "R"))
Thejeswar
6 years agoSuper User
Hi Anonymous ,
Can you give some more details on your isse.
If possible, can you give a sample data of your tables and an expected result example
- Anonymous6 years agoNot applicable
Thanks lot for your help,
I found the solution it's :
Rouge2 =SUMX (DISTINCT('Lot 2'[Competence]),CALCULATE (VAR CC =SUMX('Lot 2','Lot 2'[XP]-'Lot 2'[Prérequis])VAR AA =IF ( CC <0,0,QUOTIENT(CC, 12) + 1)VAR BB =IF ( AA >= 5,5*SUMx ('Lot 2','Lot 2'[Weight]), AA * SUMX ( 'Lot 2','Lot 2'[Weight]) )RETURNBB,Codelot2[Couleur]= "R"))- AntrikshSharma6 years agoCommunity ChampionGreat!!