Forum Discussion
Comparing TEXT vs INT not allowed.. but I'm using FORMAT!!
- 4 years ago
jrscaletta
You can useWeighted Averaged Date Movement type 1 = FORMAT ( SUMX ( FILTER ( Hoja1, Hoja1[MovementType] = 1 && Hoja1[ArticleType] = 1 ), Hoja1[Date] * Hoja1[AnimalsNumber] ) / [AnimalsMovementType1], "General Date" )
Thnanks you very much! Now it works, but the result isn't correct, I obtain date "10/8/2143", when my most recent date is "02/05/2022"...
Ideas? Thanks
What are you trying to calculate?
- jrscaletta4 years ago
Helper II
Hi tamerj1!! Thanks for your reply!
I want to calculte the average date ponderated by AnimalsNum with criteria.
All my movements are on the MOVIGRANJ table (date too).
I have 4 important fields for this:
- DATE (Date)- NUM ANIMALS (Integer)
- MOVEMENTTYPE (Integer)
- ARTICLETYPE -or product- (Integer)
- FARM (integer)
I need to calculate the average date ponderated by AnimalsNum with criteria on fields "MOVEMENTTYPE = 3" and "ARTICLETYPE = 1".
- tamerj14 years ago
Community Champion
Can you share screenshot of your source data table or provide sample data?
- jrscaletta4 years ago
Helper II
Hi Tamerj1! Thanks you again, now I'm understand your budget of Community Champion 😀
The file: https://we.tl/t-38IudN69ZO
You can see "Fecha entrada ponderada" and "Fecha salida ponderada" is not logical result.
Thanks!!!!