Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
In given data I want to see only CUSTACCOUNT which has the TYPE only Internal on selection.
Please help me out to write the logic.
Here we can create new field with the value like.
Only Internal |
Only Former |
Only External |
Only Miscellaneous |
Hi Lalit,
try this
Dimension CUSTACCOUNT
Expression
Only({<CUSTACCOUNT={"=Count({<TYPE>} DISTINCT TYPE)=1"}>} TYPE)
Regards,
Antonio
In your Excel file there is field TYPE with values Internal, Former, External, Miscellaneous if you select one of this you get the corresponding CUSTACCOUNT and if you have any more field you can filter this CUSTACCOUNT.
What is your requirement?
Hi Latit,
You could try a listbox with this expression:
=Aggr(If(Count(DISTINCT TYPE) = 1,TYPE,'Multiple types'), CUSTACCOUNT)
Regards
Andrew
At any end either Script or Front End, which is easy.
Can you look other response Antonio / Andrew too? then come back to thread we will help for sure
Or,
if You want Always TYPE = only 'Internal', try this
Only({<TYPE={'Internal'},CUSTACCOUNT={"=Count({<TYPE>} DISTINCT TYPE)=1"}>} TYPE)
Hi Lalit,
Try below in your script.
Temp1:
Load
CUSTACCOUNT,
TYPE
Resident Main_Table
Where Match(TYPE, 'Internal');
NoConcatenate
Temp2:
Load
CUSTACCOUNT,
CUSTACCOUNT AS CUSTACCOUNT_Key,
TYPE
Resident Main_Table
Where Not Match(TYPE, 'Internal');
NoConcatenate
Temp_Final:
Load
CUSTACCOUNT,
TYPE
Resident Temp1
Where Not Exists(CUSTACCOUNT_Key,CUSTACCOUNT);
Drop Tables Temp1, Temp2;
Regards,
Sumeet Vaidya