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'
endPlease 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
1 -
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.
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
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 select "yes" above
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!**1 -
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'
endPlease 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
1 -
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.
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
0 -
Above suggested solution is not expected solution OR how this works in other BI Tools (Eg. SAP BW OR AO Tool). Generally in all BI Solutions Key Figures / KPIs if have ZERO values then those rows get suppressed automatically. Please help to find this solution ASAP>
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 755 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive