Hello everyone I hope you are all well and safe!
My data= Two fields that contain IDS from clientes of a tea shop, fields= ID_SUGGAR, ID_DOUBLE
What I want to know: I want to be able to identify with a function what IDS are in BOTH ID_SUGGAR AND ID_DOUBLE , and also what IDS are only exclusive or only present in ID_SUGGAR (Which means these IDS are not in ID_DOUBLE)
Thank you to anyone who can link some documentation about it I Love you all
Hi @andres91302,
I was assuming the values are in separate events. Below should work based on your sample;
| makemv delim="," ID_SUGGAR
| makemv delim="," ID_DOUBLE
| eval IDS=mvmap(ID_SUGGAR,if(isnull(mvfind(ID_DOUBLE,ID_SUGGAR)),ID_SUGGAR,null()))
Hi @andres91302,
I was assuming the values are in separate events. Below should work based on your sample;
| makemv delim="," ID_SUGGAR
| makemv delim="," ID_DOUBLE
| eval IDS=mvmap(ID_SUGGAR,if(isnull(mvfind(ID_DOUBLE,ID_SUGGAR)),ID_SUGGAR,null()))
@scelikok this was AWESOME 10/10 thank you so so so much I have also being search your replies for others post and man... you have helped a lot for this is such a great help and I want to praise your job!!!! thank so so so so so so much
If you can post a sample data, I can find why it didn't work
hELLO sir
Hi @andres91302,
Please try below;
| eval ID=mvzip(ID_SUGGAR,ID_DOUBLE)
| makemv delim="," ID
| mvexpand ID
| eval IDS_SUGGAR=if(ID_SUGGAR==ID,ID_SUGGAR,null())
| eval IDS_DOUBLE=if(ID_DOUBLE==ID,ID_DOUBLE,null())
| eval IDS_BOTH=if(ID_SUGGAR==ID_DOUBLE,ID_SUGGAR,null())
| stats dc(IDS_*) as * by ID
Hi man! this did not work.. for me. I would like to thank you for trying to help me