Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am trying to use variables in set analysis.
Data:
Location * |
DS_V1FIN_P |
DS_ENGINE_P |
DROP_CAC |
DROP_SHIP |
DS_V1FINISH |
2D3506163 |
1D6506911 |
DS_ENGINE |
Variable Defined:
vLoc= if(wildmatch([Location *],'2*','1*','B*','DS*') and Right([Location *],2)<>'WP' and Right([Location *],2)<>'_P',[Location *])
Text Object Expression:
=Count({<[Location *]={'$=($(vLoc))'}>}[Location *])
This expression does not work.
Can some one please explain the syntax for variables in set expression? How to fix the expression above?
Please find attached qvw file.
Thanks,
Vidya
Try this
=Count({<[Location *] = {"=WildMatch([Location *], '2*', '1*', 'B*', 'DS*') and Right([Location *], 2) <> 'WP' and Right([Location *], 2) <> '_P'"}>}[Location *])
Try this
=Count({<[Location *] = {"=WildMatch([Location *], '2*', '1*', 'B*', 'DS*') and Right([Location *], 2) <> 'WP' and Right([Location *], 2) <> '_P'"}>}[Location *])
Because I don't think what you were using in set analysis was the right way to do it....
It depends on various different things... there is no one holy grail I can provide you... but in general you can start here The Magic of Variables