Conditional sumif in pivot chart

Conditional sumif in pivot chart

Hello, I would like to make a conditional formula in pivot chart but I have not been able to understand how the structure works.

Try to achieve something like:


Sum("Autoview_1483575409618_Ingresos_Egresos Table"."Gastos" if "Autoview_1483575409618_Ingresos_Egresos Table"."Tipo de ingreso" == "compras ebay")

I want to add the monthly expenses only if the type of expense is "ebay purchases". I can not do it from filters because in addition to this graphic I want to add another one that is:


Sum("Autoview_1483575409618_Ingresos_Egresos Table"."Gastos" if "Autoview_1483575409618_Ingresos_Egresos Table"."Tipo de ingreso" == "gastos")


I have not found any information about this and I want to know if it is possible. THANK YOU!