🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Create/ Calculate new example

User: "Peter_M"
New Altair Community Member
Updated by Jocelyn
Hi,
I have a data set like this:
Value | Nr.
X | 1
Y | 2

And like to have this kind of data set:
Value | Nr.
X | 1
Y | 1
Y | 1

Question:
How can I generate new examples from the existing one? Do I need to use transpose to generate new Attributes? Or should I use De-Pivot or a Macro? What is the most effective way?

Thanks for help.
Peter

Find more posts tagged with

Sort by:
1 - 4 of 41
    If it is always the same example you want to add, then Create ExampleSet and Append seems good, no?

    Best,
    Martin
    User: "Peter_M"
    New Altair Community Member
    OP

    thanks for the reply but I think I forget some details. There are much more existing attributes and examples. They are compressed in the way that the nr. is the sum of existing examples. I like to get the origina data set. That mean I need to copy the example like the amount of "Nr.". To make it unique I should insert a atribute.
    Hopefully you get my issue.

    Thanks in advance,
    Peter


    User: "MartinLiebig"
    Altair Employee
    Accepted Answer
    sorry I don't really understand the use case. Multiplying, Selecting one example (Filter Example Range), editing it (Set Data or Generate Attributes) and then Appending it may work though. This way is very flexible.

    Best,
    Martin
    User: "Peter_M"
    New Altair Community Member
    OP

    that works for a less number fo examples (rows). Now I will check to automate this via a macro or a loop because there are a lot of rows how are need to multiplyed and appended, depending of the multiplier which is mentioned in the attribute.

    Thanks for the help,
    BR,
    Peter