Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Convert data from one form to another

Dear All, I have a report with status (as in values) which means it is in format of Action Status : Comp/ Pending/ Overdue, here, if number other than zero is present then that means the point has t...
  • d_gosbell's avatar
    d_gosbell
    6 years ago
    1. first click on your column with the 3 statuses,
    2. then in the Transform ribbon click on the "Split Column" button
    3. then chose the "by Delimiter" option and choose "/" as your delimiter (Power Query should detect this)
    4. then click on ok, this should split your column into 3 numeric values
    5. rename the 3 new columns to "Comp", "Pend" and "Overdue"
    6. then click on the "Add Column" ribbon
    7. then click on "Custom Column"
    8. and paste in the following code 

     

    if [Comp] = 0 and [Pend]= 0 and [Overdue] = 0 then "No Actions Defined"
    else if [Comp] > 0 and [Pend] > 0 then "Partially Complete" 
    else if [Comp] > 0 then "Complete"
    else if [Pend] > 0 then "Pending"
    else if [Overdue] > 0 then "Overdue" 
    else "Other"