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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Expression error

Hi,

I'm getting error when i use the below logic.Please provide the right expression.

Logic: aggr(if( Status_I_Min= null(), Interval( Status_A_Max - Status_null_Min, 'hh:mm:ss') and if(Interval( Status_A_Max - Status_I_Min, 'hh:mm:ss'),Application_Number)))

Thanks..

Labels (1)
4 Replies
sunny_talwar
MVP
MVP

What are you trying to do? Can you elaborate? Provide sample?

nareshthavidishetty
Creator III
Creator III
Author

Hi,

Below is the original expression.

Original expression: =aggr(Interval( Status_A_Max - Status_I_Min, 'hh:mm:ss'), Application_Number)


Here i need to modify the expression as below.


if Status_I_Min= null() i need to show

aggr(Interval( Status_A_Max - Status_null_Min, 'hh:mm:ss'), Application_Number)


else


aggr(Interval( Status_A_Max - Status_I_Min, 'hh:mm:ss'), Application_Number)


Thanks..


sunny_talwar
MVP
MVP

May be this:

=Aggr(Interval(Status_A_Max - If(Len(Trim(Status_I_Min)) = 0, Status_null_Min, Status_I_Min), 'hh:mm:ss'), Application_Number)

muthukumar77
Partner - Creator III
Partner - Creator III

Hi,

Try like this,

if(Len(Status_I_Min)=0,

aggr(Interval( Status_A_Max - Status_null_Min, 'hh:mm:ss'), Application_Number),

aggr(Interval( Status_A_Max - Status_I_Min, 'hh:mm:ss'), Application_Number))

Muthukumar Pandiyan