Baseline value for Pivot table with a filter

How can I calculate a baseline value that has a filter? For example, what I am trying to do is sumOver(sum(X),[{Row in Pivot table}, {Column in Pivot table}=0])

You perhaps need to use sumif function. Something like this
sumOver(sum(ifelse(column in pivot table = 0, x, 0)), [row, column]). A Sample of how your data is organized and expected calculation/value would be helpful. Thank you!