Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

How to sum multiple conditions in appsheet

SUM(SELECT(Absensi Instruktur[Fee],AND(
[_THISROW].[Nama Training]=[Nama Training],
[_THISROW].[Batch]=[Batch],
[_THISROW].[Nama Instruktur]=[Nama Instruktur],
[_THISROW].[Kelas]=[Kelas],
[_THISROW].[Bulan]=[Bulan],
[Status]="ACCEPTED"),TRUE))

this formula is not working, it's not filtering status.

how i can make this statement [Status]="ACCEPTED" working

0 3 79
3 REPLIES 3

There doesn't seem to be anything wrong with the exception.  Maybe you are not implementing it in the way you really need to?

The way you presently have it implemented the row MUST meet all 6 criteria to be selected and included in the SUM.


@Deryck wrote:

how i can make this statement [Status]="ACCEPTED" working


By this, maybe you mean you want the row included if the Status = "ACCEPTED"...OR...meets the other 5 criteria?  If so, then you expression would be something like this:

SUM(SELECT(Absensi Instruktur[Fee], 
OR(
[Status]="ACCEPTED",
AND(

[_THISROW].[Nama Training]=[Nama Training],
[_THISROW].[Batch]=[Batch],
[_THISROW].[Nama Instruktur]=[Nama Instruktur],
[_THISROW].[Kelas]=[Kelas],
[_THISROW].[Bulan]=[Bulan]
)
)
))

NOTE:  The TRUE portion is not needed.

I hope this helps!

no, i do implementing like what i want.

i want showing sum at Group aggregate when [Status]="ACCEPTED"Screenshot_11.png

can someone here help me

Screenshot_12.png

Top Labels in this Space