Forum Discussion
This filter clause do as its own mind
- 6 years ago
Hi,
So it seems that you solved this problem, right? If so and if you'd like to, you could mark corresponding post as answer or share your solutions. That way, people who in this forum and have similar issue will benefit from it.
Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Sorry I did a mistake on what I mean =>
----------------------------
Quantity Ship Mode Destination Year
8 First Class France 2019
3 First Class Usa 2019
10 First Class France 2020
The Average we saw before will give (10+3+8)/3 =7
The Average for distinct Destination will give ( 18 + 3 ) /2 = 10,5
How can I do that?
----------
- PatrickByGecko6 years ago
Helper V
Thanks
But it don't works with a filter =>
Moy Hors Site =CALCULATE(DIVIDE (SUM(CollabAffectImmediat[TAUX HSITE])/DISTINCTCOUNT(CollabAffectImmediat[NOM]);FILTER(CollabAffectImmediat;CollabAffectImmediat[DATE DEBUT]<=today() && CollabAffectImmediat[DATE FIN]> TODAY() && CollabAffectImmediat[CODE PROJET]<> "GKOFORMA1" && CollabAffectImmediat[CODE PROJET]<>"GKOMAINT1"&& CollabAffectImmediat[CODE PROJET]<>"GKOAVENTE" )))I get this error => L'expression fait référence à plusieurs colonnes. Plusieurs colonnes ne peuvent pas être converties en une valeur scalaire. - SivaMani6 years ago
Resident Rockstar
Have you tried this?
Calculate(<exp>,
FILTER(CollabAffectImmediat;CollabAffectImmediat[DATE DEBUT]<=today() && CollabAffectImmediat[DATE FIN]> TODAY()) FILTER(CollabAffectImmediat;CollabAffectImmediat[CODE PROJET]<> "GKOFORMA1" && CollabAffectImmediat[CODE PROJET]<>"GKOMAINT1"&& CollabAffectImmediat[CODE PROJET]<>"GKOAVENTE" )) - PatrickByGecko6 years ago
Helper V
Hello
I succeeded this way =>
Moy Hors Site =DIVIDE (Calculate (SUM(CollabAffectImmediat[TAUX HSITE]);FILTER(CollabAffectImmediat;CollabAffectImmediat[DATE DEBUT]<=today() && CollabAffectImmediat[DATE FIN]> TODAY() ));CALCULATE(DISTINCTCOUNT(CollabAffectImmediat[NOM]);FILTER(CollabAffectImmediat;CollabAffectImmediat[DATE DEBUT]<=today() && CollabAffectImmediat[DATE FIN]> TODAY() ))) - dax6 years ago
Community Support
Hi,
So it seems that you solved this problem, right? If so and if you'd like to, you could mark corresponding post as answer or share your solutions. That way, people who in this forum and have similar issue will benefit from it.
Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.