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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Counting date and empty cells to create pie or bar chart

Please help,

I will like to create a bar  chart or pie chart that will count cells with "date" values, cells with "NA" values and "empty" cells.

Please refer to the image to help out here.

Thanksdatecompleted.JPG

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You could use a Calculated Dimension like:

=if(trim(DateCompleted)='', 'Empty'

,if(DateCompleted='NA', 'NA'

,'Date'

))

and an Expression

=sum(1)

-Rob

http://masterssummit.com

http://robwunderlich.com

View solution in original post

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You could use a Calculated Dimension like:

=if(trim(DateCompleted)='', 'Empty'

,if(DateCompleted='NA', 'NA'

,'Date'

))

and an Expression

=sum(1)

-Rob

http://masterssummit.com

http://robwunderlich.com

Not applicable
Author


Thanks Rob! You saved the day!

Works perfectly!

  • Not Closed is my 'Empty'
  • NA is 'NA'
  • Closed is 'Date'

And I changed the 'Background Color' in the 'Expression' tab.

monthendclosing.JPG