Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a straight table with an expression with a value of either yes or no.
I just want to know, is it possible to show all the Yes values of an expression using a macro??
if possible can someone teach me how to do it..
thanks...
I hope someone can help me on this....
thanks!
take the help of following
tab1_temp:
Load
* inline[
;
tab1:
load
*,
''
asjunk
resident
tab1_temp where col3='yes';
drop
tabletab1_temp;
store
tab1 intoyourpath\a.qvd;
regards
Sunil
the Different? column is a result of an expression that checks whether the UnitCost is the same with New..
in that case if u share sample file then only i will able to help u
The same expression (Different) can be written when you are loading the table (in scripting part). After table is loaded take the resident of the table and filter it by the variable(va4 is the expression).
dir:
LOAD
sno as yearqtr,value
,
if
(value >100, 'Yes','No') as va4
FROM
table1:
dir1:
load
resident
dir where va4='Yes'; *INPUTFIELD New;
Products:
LOAD * INLINE [
ProductID, ProductName, UnitCost
1, Lenin Jeansshorts, 15.37
2, Mr2 Trousers, 16.17
3, Chantell Shirt, 15.45
4, Rossi Shorts, 19.34
5, O-Man Underwear, 4.72
];
Temp:
Load ProductID,
UnitCost as New
Resident Products;
and in my straight table, my expression is: =if(Money#(UnitCost,'$#,##0.00;($#,##0.00)') <> Money#(New,'$#,##0.00;($#,##0.00)'),1,0 ). this checks whether the UnitCost is equal to New.
Now, i want to get all the data if the result of the expression is 1 then export it to a qvd file..
what i'm trying to do here is a dynamic price list..
thanks
Do you want to do this automatic in the script?
If not you can just right click on the charts and choose "Export..."