Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone!
Is it possible to generate new dimension and values according to the folders paths?
My load script has this structure:
What I looking for: for example, if the data is coming from the folder 'Brand 1', I'd get a new dimension with the 'Brand 1' value. And, if it's coming from the folder 'Brand 2', I'd get the 'Brand 2' value in the new dimension. And so on.
And finally, I'd get a table like this:
Can someone share the solution with me?
Thanks in advanced!
for each vFolder ...
NewDim:
Load
$(vFolder) As NewDimension
From
[$(vFolder)...]
....
where RowNo() < 1;
for each vFolder ...
NewDim:
Load
$(vFolder) As NewDimension
From
[$(vFolder)...]
....
where RowNo() < 1;
Hi, Anbu
I've already tried it.
It doesn't work, because creates only one value.
Tks
you are missing the next statement below the execution of the load statement?!
Stefan answer seems ok
for each vFolder in 'Brand 1', 'Brand 2'
NewDim:
Load
'$(vFolder)' As NewDimension
AutoGenerate 1;
next;
Oh, that's right
I've missed the next statement.
It works!
Thanks!
You're right, Stefan
I've missed it.
thanks!
You're righ, Massimo
I've missed. Now works fine.
tks!