The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Dividing one row with another and create new row in same attribute.

pallavpallav Member Posts: 39 Contributor II
Hello All i have date something like this .


What is want to achieve is divide each attribute with with row value say suppose in "OOP_BUCKET" we have 0-0 for both "Metric" Total claim and Total Reversal . I want to create new row 0-0 % where total count will be "27 / 244281"  and same for 102-204 % rows say suppose APR-18 will be 147 / 5985.3. Attaching sample below . 


The lower rows will be product of division of total reversal / Total claims . 

Thanks in Advance looking forward to get more robust process for this task . 

Best Answer

Answers

  • hbajpaihbajpai Member Posts: 102 Unicorn
    Hey @pallav ,

    There are many ways to approach it. From what I gather you could create a datasets with OOP bucket as id's and melt your other columns wrt to claims and reversals (you can use RM pivot operation for this, you might need some pre processing also). You would end up with attributes like Apr-18-Claims and Apr-18-Reversals and then you can just use generate attributes to calculate reversal percentage attributes. Another way could be you have separate tables for claims and reversals and then in a loop filter on ids (OOP-Bucket) and calculate reversal percentage inside the loop using generate attributes operator. Hope this helps, let me know if you have any questions.  
    Best,
    Harshit
  • pallavpallav Member Posts: 39 Contributor II
    @hbajpai - second approach looks fine to me but how to calculate that reversal percentage . 
    do we have some working example like this .?
  • hbajpaihbajpai Member Posts: 102 Unicorn
    @pallav
    Can you share your data as a file ?  I can create and send out the process to you.
    Best,
    Harshit
  • pallavpallav Member Posts: 39 Contributor II
    @hbajpai - sorry for delay response . please find the file as attachment.  We have to calculate percentage by dividing "total claim/ total reversal" for each bucket and for each month . 
  • pallavpallav Member Posts: 39 Contributor II
    @hbajpai - Months given here like "201801" or 201801 can be dynamic ,
  • pallavpallav Member Posts: 39 Contributor II
    Hi- Can anyone assist me here . 
Sign In or Register to comment.