Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using the classfunction in the expression

I wonder if you could use the class function in an expression together with an aggr function?

I am having two dimensions - one using the class function and one as Year.

Expression:

aggr(count({$<ContentType= {'Incident'}, ows_TSC_SD_Status={'Closed'}>} ows_Created) / count({$<ows_ContentType= {'Incident'}>}ows_Created), Created_Year, (need the class function)

Dimension:

class(if(ows_TSC_SD_Status='Closed',ows_TSC_SD_DateClosed, timestamp(today()))  - ows_Created,10, 'Days'))

Year

I have also been thinking of using some kind of Interval or Intervalmatch.

5 Replies
Not applicable
Author

Is it possible of using class in an expression?

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

What happened when you tried?

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Nothing happends. White screen. I haven't seen any examples of this in the community.

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Could you post your QVW?

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author