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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
dineshm030
Creator III
Creator III

Aggr Function With IF Statement

Hi All,

I am facing the issue while use AGGR function with IF statement. While using the IF statement FALSE condition is not showing. Am using below expression:

=Aggr(If(Max({<SCADA_DateTimeEST = {'$(=Max(SCADA_DateTimeEST))'}>}SCADA_FAULT_NUMBER) >= 0 ,[Machine Fault Condition],'No Demand'),[Machine Fault Condition])

Thanks in advance.

Regards,

Dinesh Kumar Mani.

3 Replies
Kushal_Chawda

@dineshm030  you need to define false condition in else part of the if statement

=Aggr(If(Max({<SCADA_DateTimeEST = {'$(=Max(SCADA_DateTimeEST))'}>}SCADA_FAULT_NUMBER) >= 0 ,[Machine Fault Condition],'Not matched'),[Machine Fault Condition])

dineshm030
Creator III
Creator III
Author

Now True condition is not working.

Kushal_Chawda

@dineshm030  without looking at your data and condition it is hard to tell where it is wrong. Please share sample data with expected output