Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

how to form a target in descending order for predictive maintenance

Danielht
7 - Meteor

Hello community,
I want to form a descending 'New_target' where 0 represents the failure of a machine (In Fault or Target). I show a table (the real data I will put it in excel to download). Any ideas?

 

TargetDate HoursFaultS1New_target
020/01/20188060
120/01/201812 25
220/01/201813 74
320/01/201816 93
420/01/201818 32
520/01/201819 91
020/01/201822050
120/01/201823 33
221/01/20180 82
321/01/20181 71
021/01/201812070
121/01/201821 54
222/01/20181 23
322/01/20182 12
422/01/201823 21
022/01/201824010
4 REPLIES 4
AbhilashR
15 - Aurora
15 - Aurora

Hello @Danielht, would something like the attached solution work for you? Below are the broad steps I took:

  1. Included a RecordID tool to number the individual rows in your dataset
  2. Artificially grouped the data using multi-row formula tool
  3. Filtered out rows with target = 0
    1. using a combination of Summarize and Append tool, I re-number the RecordID for the filtered target = 0 rows
  4. All non-zero target rows get passed to the output
  5. Union all and finally apply a sort

AbhilashR_0-1586231005325.png

Let us know if I misunderstood your ask, or if you need clarification on any specifics I used.

Danielht
7 - Meteor

Hi @AbhilashR 
Thank you very much for responding, but I would like Date and Hours to be ordered in ascending order. Only New_Target should be in descending form.

Can be done?

AbhilashR
15 - Aurora
15 - Aurora

Hi @Danielht, thanks for getting back to me! I have modified solution to keep all columns as-is, but just reverse the number of target column. 

AbhilashR_0-1586233699930.png

Let us know if this works. 

Danielht
7 - Meteor

Thank you very much friend @AbhilashR , greetings from Lima Peru.

Labels