Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
devans_1
Creator
Creator

Macro for supressing zeros

Does anybody know the macro syntax for suppressing zeros in a table ? I need to be able to toggle between showing zeros and not showing them. I tried the code

sub Suppress_Zero_Values  
set obj = ActiveDocument.GetSheetObject("CH109")
set fprop = obj.GetProperties
fprop.ZeroSuppression = True
end sub

but something is wrong with fprop.ZeroSuppression

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     It should be

     fprop.SuppressZero = True

Celambarasan

View solution in original post

4 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     It should be

     fprop.SuppressZero = True

Celambarasan

Not applicable

Hi, You have Suppress Zero option available in Presentation Tab or you can use aggr() function in Dimension like =if(aggr(sum(something), dimension) <> 0, dimension) then use Suppress when value is null in dimension tab.

Not applicable

You have to call obj.SetProperties fprop after having changed the properties object.

devans_1
Creator
Creator
Author

Thanks. This was exactly what I needed. And I do need to call obj.SetProperties afterwards.

Does anyone know if there is a document anywhere that links all the Qlikview descriptions (like Suppress Zero Values' to 'SupressZero') to the macro calls ?