Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have table with following data
Name | Province | Sales |
Bob | ON | 200 |
Mike | ON | 500 |
Bruce | ON | 6000 |
Bob | BC | 2000 |
Mike | BC | 122 |
Bruce | BC | 367 |
Craig | ON | 3400 |
Craig | BC | 1200 |
for me both istext & isnum returning 0
How do i put the max into form of where clause.
Ok let me ask this quesiton differently
I want to filter all the data that is not max while i am loading the data so it only loads the max records and drops the other ones.
so
Table:
Load
Name,
Province,
Sales
from temp.qvd
where .................. filter all the records without the max value
I supposed in a chart, like this
Data resides randomly in qvd. I want to restrict in during data load instead of loading all the data and then showing max value..
x:
load * inline [
Name, Province, Sales
Bob, ON,200
Mike, ON, 500
Bruce, ON, 6000
Bob, BC, 2000
Mike, BC, 122
Bruce, BC, 367
Craig ,ON, 3400
Craig ,BC, 1200
];
y:
noconcatenate
load
Name, Province, Sales
Resident x
where peek(Name) <> Name
order by Name, Sales desc;
drop table x;
Hello, can you please show what you expect to get into the table after the load with the filter?
Try like:
Input:
load * Inline [
Name,Province,Sales
Bob,ON,200
Mike,ON,500
Bruce,ON,6000
Bob,BC,2000
Mike,BC,122
Bruce,BC,367
Craig,ON,3400
Craig,BC,1200
];
Output:
Load
Name,
max(Sales) as MaxSale
Resident Input Group By Name;
Drop Table Input;