Community & Support
Learn
Marketplace
Discussions
Categories
Discussions
General
Platform
Academic
Partner
Regional
User Groups
Documentation
Events
Altair Exchange
Share or Download Projects
Resources
News & Instructions
Programs
YouTube
Employee Resources
This tab can be seen by employees only. Please do not share these resources externally.
Groups
Join a User Group
Support
Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Generate Attribute based on a single value in example set
Yumi
I have a dataset like below
No. Price1 Price2
0 A 0
1 200 300
2 120 800
I want to make it like this
No. Price1 Price2 Code
1 200 300 A
2 120 800 A
I tried using generate attributes.. but the if else functions will check rows by rows. I have different datasets like this which are A, B, C... Can I use a macro to set the alphabet order?
Find more posts tagged with
AI Studio
Generate Attributes
Accepted answers
All comments
JEdward
I'm sure I'm missing some obvious trap in the dataset, but assuming that the formats don't change and you have one dataset per letterValue, you could use Extract Macro to take the value of Price1 at the first position, then use Generate Attributes to add that macro value to the rest of the dataset.
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups