Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I have a dimension table in my script and I want to group the data items so if i have:
Expense AE
Expense AA
Expense AC
These should appear in Expense A
Ok in your load statement put a code like this
If(Match(Category,'ATFAO','ATFUO'),'Out',Category) as NewCat
By this your 'ATFAO','ATFUO' are goes to Out category as what ever you want and other is same category. In the same above you can add for others category also what ever you decide i done here for category field.
Hope this helps
this are the fields or the table names
these data lines in a table.
Write like for new field type
if( Match(Yourfieldname,'Expense AE','Expense AA','Expense AC'),'Expense A','Other') as NewFieldtype
is this in the script?
Yes in the load script like
if( Match(Yourfieldname,'Expense AE','Expense AA','Expense AC'),'Expense A','Other') as NewFieldtype
and in dimension or expression
=if( Match(Yourfieldname,'Expense AE','Expense AA','Expense AC'),'Expense A','Other')
ok thanks.
What about if i have many to of this so as above but also Expense AB, Expense AF AS Expense C
If possible provide some sample data for this.
LocalPointOfDelivery | LocalPointOfDeliveryDescription | Category |
A&E | A&E | AE |
All | All | AL |
ATFAO | Attended Outpatients - first attendance | ATFAO |
ATFUO | Attended Outpatients - follow up | ATFUO |
ATOP | Outpatient Attendances excl DNA | ATOP |
CC | Critical Care | AL |
COM | Community | AL |
DA | Direct Access | DIR |
DC | Daycase | DC |
ELIP | Elective Inpatient | EIP |
IP | All in-patients | IP |
NEL | Non Elective Inpatient | NEIP |
OP | Outpatient Attendance | OP |
OPFA | Outpatients FA | ATFAO |
OPFU | Outpatients FU | ATFUO |
OTH | Other | AL |
WA | Ward attenders | OP |
So in the above
I want AFAO, AFTUO to be under Out, and the all others as they are. This will then want to be be in a list object as a filter.
In which column that is Category