Supress Zero Value rows in Pivot table
Best Answers
-
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.
FIXED reference:
I think it would be something like this, but I never get FIXED formulae right on the first try:
case when
sum(case whenValue Field
= 0 then 1 end) fixed(byRows Field 1
,Rows Field 2
,Column Field
)=
count(Value Field
) fixed(byRows Field 1
,Rows Field 2
,Column Field
)
then 'Filter this out'
else 'Do not filter this out'
end0 -
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.
0
Answers
-
You can filter out any value from being included in the pivot table that has a zero value like this:
If I solved your problem, please "accept" my answer as the solution
1 -
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.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
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
0 -
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.
FIXED reference:
I think it would be something like this, but I never get FIXED formulae right on the first try:
case when
sum(case whenValue Field
= 0 then 1 end) fixed(byRows Field 1
,Rows Field 2
,Column Field
)=
count(Value Field
) fixed(byRows Field 1
,Rows Field 2
,Column Field
)
then 'Filter this out'
else 'Do not filter this out'
end0 -
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.
0
Categories
- All Categories
- 1.1K Product Ideas
- 1.1K Ideas Exchange
- 1.2K Connect
- 970 Connectors
- 259 Workbench
- Cloud Amplifier
- 1 Federated
- 2.4K Transform
- 76 SQL DataFlows
- 502 Datasets
- 1.8K Magic ETL
- 2.7K Visualize
- 2.2K Charting
- 379 Beast Mode
- 21 Variables
- 487 Automate
- 104 Apps
- 379 APIs & Domo Developer
- 6 Workflows
- 22 Predict
- 6 Jupyter Workspaces
- 16 R & Python Tiles
- 319 Distribute
- 67 Domo Everywhere
- 252 Scheduled Reports
- 59 Manage
- 59 Governance & Security
- 1 Product Release Questions
- 5K Community Forums
- 37 Getting Started
- 23 Community Member Introductions
- 64 Community Announcements
- 4.8K Archive