madcrystal
Technical User
I have a union that pulls in data that looks like this:
a 1 2 0 0
b 1 2 0 0
c 1 2 0 0
a_a 0 0 1 2
b_b 0 0 1 2
c_c 0 0 1 2
What I'm trying to do is match each dimension with it's corresponding dimension and return the relating measures. So, for instance:
foreach record {
if(a = right("a_a"; 1)) { return measure }
}
The result would be outputting:
a 1 2 1 2
b 1 2 1 2
Anyone tackle this in the past?
a 1 2 0 0
b 1 2 0 0
c 1 2 0 0
a_a 0 0 1 2
b_b 0 0 1 2
c_c 0 0 1 2
What I'm trying to do is match each dimension with it's corresponding dimension and return the relating measures. So, for instance:
foreach record {
if(a = right("a_a"; 1)) { return measure }
}
The result would be outputting:
a 1 2 1 2
b 1 2 1 2
Anyone tackle this in the past?