Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
dseelam
Creator II
Creator II

Status

Hello All,

Please check attachment, would like to create a filter by status using the same expression in the straight table

11 Replies
vishsaggi
Champion III
Champion III

Did not get you what you want to see in your sheet as an output?

dseelam
Creator II
Creator II
Author

Hey Vishwa,

Thanks for the reply, would like to create a filter by status using the same expression in the straight table

vishsaggi
Champion III
Champion III

Try this in your listbox expr:

= if(Item.STATUS_COMP='P',Item.STATUS_COMP,

    if(Aggr(sum(ASCP.DMND), ASCP.ITEM, ASCP.ORG) > 0,

        if(Aggr(sum(ASCP.ON_HAND-ASCP.DMND), ASCP.ITEM, ASCP.ORG) < 0,'A','S'),'P'))

Capture.PNG

dseelam
Creator II
Creator II
Author

Vishwa,

this is what happening when I select 'A ' from filterCapture.PNG

sasiparupudi1
Master III
Master III

if(Item.STATUS_COMP='P',Item.STATUS_COMP,

IF(Aggr(sum(ASCP.DMND),ASCP.ITEM,ASCP.ORG)>0,if(Aggr(sum(ASCP.ON_HAND-ASCP.DMND),ASCP.ITEM,ASCP.ORG)<0,'A','S'),'P'))

dseelam
Creator II
Creator II
Author

Hello Sasi,

It is the same expression what Vishwa posted it's giving me wrong selections when I select something from the filter as the screenshot above.

thanks

sasiparupudi1
Master III
Master III

May be try

=If(Item.STATUS_COMP='P',Item.STATUS_COMP,

If(Aggr(sum(ASCP.DMND),ASCP.ITEM,ASCP.ORG)>0 AND Aggr(sum(ASCP.ON_HAND-ASCP.DMND),ASCP.ITEM,ASCP.ORG)<0,'A','S'))

vishsaggi
Champion III
Champion III

Can you break down your requirement for status A, P and S please. There is something to be tweaked around your if conditions. Please break down individually and let us know so that we can rebuild the expressions. Like what is the condition to get A, P and S accordingly.

dseelam
Creator II
Creator II
Author

Tried it seems like a glitch see attached if I select 'A'Capture.PNG

When I select 'S', 'P' is working fineCapture1.PNG