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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ankuragrawal
Partner - Contributor
Partner - Contributor

Find all fields with all null values in data model

Hi All

I got a requirement to list down all the fields which are null in my data model.

Example- my data model has 30 fields out of which many fields are there in which not a single value is available in any of the cells of the field or u may say as density=0%.

How can I  proceed

7 Replies
tresesco
MVP
MVP

If Len(trim(Concat(distinct Field)))=0 then field has no value

ankuragrawal
Partner - Contributor
Partner - Contributor
Author

Thanks

but i need count to such fields

ankuragrawal
Partner - Contributor
Partner - Contributor
Author

if my data model has 30 fields out of which 7 are totally null then i need the count 7

tresesco
MVP
MVP

In UI or script?

ankuragrawal
Partner - Contributor
Partner - Contributor
Author

UI

tresesco
MVP
MVP

Hi Ankur,

It is a difficult one. 🤔 But I guess I could figure out an expression for UI. Try like:

=Sum(Aggr($(=concat('if($Field=' & chr(39) & $Field & chr(39) & ',If(Not Sum(Len(Trim([' & $Field & ']))),1,0)', ',') & Repeat(')',Count($Field)))
,$Field))

tresesco
MVP
MVP

Hello @ankuragrawal , did you try this? Does it work for you?  

Sorry, following up because I took some time to resolve the problem and a bit excited to know the status.