Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I need to convert this formula into set analysis ... any help?
COUNT(IF(WildMatch(PRODUTO,'MADEIRA*') AND UF_ORIGEM<>UF_DESTINO, SEQ_ITEM_GUIA))
Thanks
Note. I'm Brazilian, my writing is not good. But my reading is very good.
How about this:
Count({<PRODUTO={"MADEIRA*"}, UF_ORIGEM-={'UF_ORIGEM'}>}SEQ_ITEM_GUIA)
Hello,
Try this
COUNT({<Poruduto={'MADEIRA*'}, UF_ORIGEM-={'UF_DESTINO'}>}SEQ_ITEM_GUIA)
Thanks
How about this:
Count({<PRODUTO={"MADEIRA*"}, UF_ORIGEM-={'UF_ORIGEM'}>}SEQ_ITEM_GUIA)
Hi, the search string should be in double quotes otherwise it will not work in new Qlik Sense versions. Check this out: Quotes in Set Analysis
Thanks for that
You can add a flag in the script. For example:
LOAD
...
WildMatch(PRODUTO,'MADEIRA*') as Flag
Resident YourTableName;
Then for the set analysis you can use:
COUNT( {< Flag = {'1'}, UF_ORIGEM -= {'UF_DESTINO'} >} SEQ_ITEM_GUIA )
Hope this helps.
It worked, thank you very much
It works too, thanks.
Count({<PRODUTO={"MADEIRA*"}, UF_ORIGEM =- {'UF_ORIGEM'}>}SEQ_ITEM_GUIA)