Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
chaper
Creator III
Creator III

Best way to populate null as Zero while using Aggr() and count

I am trying populate (not just show) null values as Zero while using Aggr().Tried if condition but no luck.

aggr((count({<Fiedl1={'2016'}>}Distinct Field2)),Field3)

Thanks

1 Solution

Accepted Solutions
sunny_talwar

Or just this

Sum(Aggr((Count({<Fiedl1={'2016'}>}Distinct Field2)), Field3))

View solution in original post

5 Replies
vishsaggi
Champion III
Champion III

May be this?

Alt(aggr((count({<Fiedl1={'2016'}>}Distinct Field2)),Field3), 0)

sunny_talwar

Or just this

Sum(Aggr((Count({<Fiedl1={'2016'}>}Distinct Field2)), Field3))

chaper
Creator III
Creator III
Author

Thanks Sunny and Vishwanath .Both solutions work perfect

chaper
Creator III
Creator III
Author

Your solution works perfect but Totals not populating.

chaper
Creator III
Creator III
Author

Sunny your solution works and also shows right totals on top.Thanks