Forum Discussion
Anonymous
5 years agoNot applicable
Calculate Average except one column
Hi all, Below is a summary of what i have in my data. I need to calculate National Avg in the second Table below. My query currently looks like Avg National = CALCULATE(AVERAGE(Query1[Bill...
- 5 years ago
Anonymous Can you try this? It worked for me in one of the scenarios
Avg National = CALCULATE(AVERAGE(Query1[Bill Rate]),ALL(Query1[State]),ALLSELECTED(Query1[Division],Query1[Assignment Type],Query1[Speciality]))
Sujit_Thakur
5 years agoSolution Sage
Dear friend I didn't understood the question well, But to the point which I understood you may try this Avg National = CALCULATE(AVERAGE(Query1[Bill Rate])) Please explain it once more so that I could help
- Anonymous5 years agoNot applicable
Hi Sujit,
Im trying to get the National Avg. Basically i dont want column State to play any role in the calculation. In the below image there are two table visuals. In the 2nd table, i have division, assignment type, speciality and state. I want the average to be calculated including division, assignment type, speciality but excluding state which should be the national avg.
- Anonymous5 years agoNot applicable
Please can anyone help me with this please...
- amitjzaveri5 years agoResolver II
Anonymous Can you try this? It worked for me in one of the scenarios
Avg National = CALCULATE(AVERAGE(Query1[Bill Rate]),ALL(Query1[State]),ALLSELECTED(Query1[Division],Query1[Assignment Type],Query1[Speciality]))- Anonymous5 years agoNot applicable