# Supress Zero Value rows in Pivot table

Hi,

Do we have an option to suppress complete zero value rows from pivot table.

Thanks

• Contributor Assuming by row, you mean everything that will display as a row in the pivot table and not a row from your original dataset. If that assumption is correct, then the 0s will be all the values associated with what defines your rows and columns With that in mind, the BeastMode GrantSmith mentioned above would need to be a FIXED formula, since it will need to calculate across multiple rows.

I think it would be something like this, but I never get FIXED formulae right on the first try:

case when
sum(case when `Value Field`= 0 then 1 end) fixed(by `Rows Field 1`, `Rows Field 2`, `Column Field`)=
count(`Value Field`) fixed(by `Rows Field 1`, `Rows Field 2`, `Column Field`)
then 'Filter this out'
else 'Do not filter this out'
end

• Contributor Maybe you could create a filter on a BeastMode like this, assuming you don't have negatives that would make it inadvertently add up to 0:

CASE WHEN

SUM([All those value columns]) FIXED(BY [All those row columns]) = 0 THEN 'Exclude'

ELSE 'Include

END

You could wrap all your value columns in an absolute value or square them if there's a chance they might add up to 0 and not all equal zero.

If you're having trouble getting a pivot table to work the way you like, you could also do your pivoting in MagicETL. Then, you could create a filter tile after your pivot that filters only when every single value is 0.

• Coach You can filter out any value from being included in the pivot table that has a zero value like this:

• Coach Since you want to ignore if an entire row is all 0s there isn't a simple built-in way to do this. You could write a beast mode which would aggregate all of the different values together for each row and then filter them out as @colemenwilson mentioned above.

**Did this solve your problem? Accept it as a solution!**
• I got 12 values in chart few of those are sum and rest are beast mode, On a table I am seeing 0 values for all values for few accounts, I don't want to show that row with zero values for all values .

I see those rows like below nulls and zero values

I don't want to show this row in UI, I hope you got my requirement properly.

Thanks

• Contributor Assuming by row, you mean everything that will display as a row in the pivot table and not a row from your original dataset. If that assumption is correct, then the 0s will be all the values associated with what defines your rows and columns With that in mind, the BeastMode GrantSmith mentioned above would need to be a FIXED formula, since it will need to calculate across multiple rows.

I think it would be something like this, but I never get FIXED formulae right on the first try:

case when
sum(case when `Value Field`= 0 then 1 end) fixed(by `Rows Field 1`, `Rows Field 2`, `Column Field`)=
count(`Value Field`) fixed(by `Rows Field 1`, `Rows Field 2`, `Column Field`)
then 'Filter this out'
else 'Do not filter this out'
end

• Contributor Maybe you could create a filter on a BeastMode like this, assuming you don't have negatives that would make it inadvertently add up to 0:

CASE WHEN

SUM([All those value columns]) FIXED(BY [All those row columns]) = 0 THEN 'Exclude'

ELSE 'Include

END

You could wrap all your value columns in an absolute value or square them if there's a chance they might add up to 0 and not all equal zero.

If you're having trouble getting a pivot table to work the way you like, you could also do your pivoting in MagicETL. Then, you could create a filter tile after your pivot that filters only when every single value is 0.