Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Everyone,
I need some help to get the below requirement and the data is like below.
Input:
Part | OrderNo | OrderLineNo | CHARGETYPE | Cost |
---|---|---|---|---|
Samsung | 88733 | 1 | 498 | |
Melkco | 88733 | 2 | 3 | |
Other | 88733 | 9000 | 0 | |
88733 | 1 | SamsungDAC | -20 | |
88733 | Frakt | 5 |
Logic:
Based on the OrderNo and OrderLine No need to fill the blanks in Part field.So below sample output.
Part | OrderNo | OrderLineNo | CHARGETYPE | Cost |
---|---|---|---|---|
Samsung | 88733 | 1 | 498 | |
Melkco | 88733 | 2 | 3 | |
Other | 88733 | 9000 | 0 | |
Samsung | 88733 | 1 | SamsungDAC | -20 |
88733 | Frakt | 5 |
Final Out Put :
When am selecting the samsung value in Part field then i need to get the below output.
Note : Here no need to consider the Chargetype is blank.So only -20.
Part | Cost |
Samsung | -20 |
Note : I need to do this mainly in front end level only because of all the fields are coming multiple tables.So its very difficult to touch the data model.
Eagerly waiting for someone response to save my day 🙂
More Thanks,
Ajay
Please see the attached
It is difficult to get Part Samsung for same OrderLineNumber and OrderNo at front end. You can get the Name Samsung for Part field in script end.
Thanks Manish.
I need to get this in front end itself.Anyway can you help me how to resolve this script level.
More Thanks,
Ajay
FYI
Hi,
try to use Calculated Dimension instead of Part
Aggr(MaxString(Part),OrderNo,OrderLineNo)
Regards,
Antonio
Hi,
I have done this in front end but not sure if this is good approach.
But for now it will help
Thanks Manish...Its looks working fine through script.
Is it actually possible from front end?
More thanks,
Ajay
Thanks Kush.But its not working.
If am selecting samsung in part level its showing 498 which is wrong....I want -20.
Thanks,
Ajay
Hi Ajay,
I have done some modification. Please check it out.
Hi Ajay,
I think best way to do it from front end is suggested by ANTONIO MANCINI with slightly changing the expresion