Does anyone know if there is a way to take the AVG() function so that it does not include any cells that have zeros in them. To give a better idea, If I have the following data being pulled by a query:Expense 1 Expense 2$1,000,000.00 $0.00$80,000.00 $100,000.00$10,000.00 $0.00$5,000.00 $0.00$7,000.00 $0.00$20,000.00 $0.00$10,000.00 $23,000.00
The average for Expense 1 should be $17,000. And Expense 2 should be $61,500.00 Not $17,571.42 Which is what I would get if I put in avgI found something similar to the following code from Google that someone said would work, but it didn't change anything, though I might have it wrong:AVG(CASE WHEN Expense2 > 0 Then Expense2 ELSE NULL END) AS "Expense2"Thanks for your help