Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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