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: 
ajaykumar1
Creator III
Creator III

Dimension level if else condition help

Hi Everyone,

I need some help to get the below requirement and the data is like below.

Input:

Part OrderNo OrderLineNo CHARGETYPE Cost
Samsung887331498
Melkco8873323
Other8873390000
887331SamsungDAC-20
88733Frakt5

Logic:

Based on the OrderNo and OrderLine No need to fill the blanks in Part field.So below sample output.

PartOrderNoOrderLineNoCHARGETYPECost
Samsung887331498
Melkco8873323
Other8873390000
Samsung887331SamsungDAC-20
88733Frakt5

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.

PartCost
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

1 Solution

Accepted Solutions
Kushal_Chawda

Please see the attached

View solution in original post

19 Replies
MK_QSL
MVP
MVP

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.

ajaykumar1
Creator III
Creator III
Author

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

MK_QSL
MVP
MVP

FYI

antoniotiman
Master III
Master III

Hi,

try to use Calculated Dimension instead of Part

Aggr(MaxString(Part),OrderNo,OrderLineNo)

Regards,

Antonio

Kushal_Chawda

Hi,

I have done this in front end but not sure if this is good approach.

But for now it will help

ajaykumar1
Creator III
Creator III
Author

Thanks Manish...Its looks working fine through script.

Is it actually possible from front end?

More thanks,

Ajay

ajaykumar1
Creator III
Creator III
Author

Thanks Kush.But its not working.

If am selecting samsung in part level its showing 498 which is wrong....I want -20.

Thanks,

Ajay

Kushal_Chawda

Hi Ajay,

I have done some modification. Please check it out.

Kushal_Chawda

Hi Ajay,

I think best way to do it from front end is suggested by ANTONIO MANCINI with slightly changing the expresion