Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi guys,
I have created a sample qvw file for my scenario. my problem, i cant sort by expression a calculate dimension.
my calculated dimension is:
=if(Match(cat,'bread','flour','others'),'others',cat)
then i tried to SORT BY expression:
MATCH(cat,'meat','vege','others')
my expected result:
the sorting in the table should be meat, vege,others. i couldnt get this result.
Can you guys help me out?
Rgds
Jim
Hi,
You can create another calculated dimension with:
MATCH(if(Match(cat,'bread','flour','others'),'others',cat),'meat','vege','others')
Sort on this dimension (Numeric Value/Ascending) and hide this dim in presentation tab.
See the attached .qvw
sorry,the attachment!
Hi,
You can create another calculated dimension with:
MATCH(if(Match(cat,'bread','flour','others'),'others',cat),'meat','vege','others')
Sort on this dimension (Numeric Value/Ascending) and hide this dim in presentation tab.
See the attached .qvw
Try: Sort expression = MATCH('meat','vege','others'). Remove the "cat"
thanks bro, is helpful!