Forum Discussion
AlexGallet01
9 years agoHelper IV
Problem with formula
Hello, I have a problem with my formula and i don't understand why it's not possible to do this. DIFF = CALCULATE(SUM(Commandes[LCCNVALCDE]);TEST[References.ValeursUtilise])-CALCULATE(SUM(Com...
AlexGallet01
9 years agoHelper IV
Hi ValubiMartin,
I can't do this column i have an error message with value before H-OF.
The message speak about impossible to convert my value type of string in int.
Anonymous
9 years agoNot applicable
Can you send me a picture of how your data is stored?
- AlexGallet019 years agoHelper IV
- Anonymous9 years agoNot applicable
Hi AlexGallet01,
You can try to use below calculate column formula if it suitbale for your requirement:
DIFF= IF(TEST[References.ValeursUtilise]<>"H-OF",CALCULATE(SUM(Commandes[LCCNVALCDE]),TEST[THKTNODOS])-CALCULATE(SUM(Commandes[LCCNVALCDE]),TEST[THKTNODOS]+1),blank())
BTW, I think you should use the index column to calculate the diff. Actually, you are try to calculate between number and text. :smileyhappy:
Regards,
Xiaoxin Sheng
- AlexGallet019 years agoHelper IV
No mi calcul it's between the sum of price command where my thknodos have the first value and th sum of price command where the value of thknodos have the second value. And next i want to do this between all thknodos.