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: 
QFanatic
Creator
Creator

Total in Expression

hi guys

1. Please explain to me what the 'Total' in the following expression means...

2.  I am specifying REQ_HOUR -= {'NULL'} in the Set Expression ,..would this hardcoded 'NULL' field also get excluded in the Total part? if not - how can I get that part explicitly excecuted in the Total...?

avg({$<PERIOD={$(vMaxMonth)},REQ_DATE=, TYPE_GRAPH = {'HOURLY'}, REQ_HOUR -= {'NULL'}>}total <WKDAY,REQ_HOUR> HOUR_VOLUME)

thanks

 

1 Solution

Accepted Solutions
Saravanan_Desingh

TOTAL consider all selections you make. But ignores the row in the Table. The Aggregation will be done across the rows.

You can search in the community for more details.

View solution in original post

3 Replies
Saravanan_Desingh

TOTAL consider all selections you make. But ignores the row in the Table. The Aggregation will be done across the rows.

You can search in the community for more details.

Saravanan_Desingh

Just noticed.
Are you trying to remove the NULL values for REQ_HOUR, with the below code? Sorry its wrong.

REQ_HOUR -= {'NULL'}

 Use below. It is equivalent to Not IsNull(REQ_HOUR).

REQ_HOUR = {"*"}
QFanatic
Creator
Creator
Author

Hello,

I've built in a line in my code that says if(isnull(REQ_HOUR),'NULL',REQ_HOUR) as REQ_HOUR to try and 'catch' that null field.