Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Logic - Data Masking

suby
11 - Bolide

Hi All,

 

Replacement ID
[RecordID]*-1

 

Replacement Name
"Redacted User "+TOSTRING([RecordID])

 

I'm trying to mask the data ( User ID and User Name fields) and have the above formulas to redact the data and the data is getting redacted as expected and then later in my workflow i transpose those columns.


Then later in my workflow i have the FLAG column where by i am flagging if the conditions are met then 1.

 

FLAG

if Contains([Value],"Redacted User") or tonumber([Value]) < 0
then 1
else Null() endif

 

After transposing the values there is one column called 'No of Days' which holds the value -15 so based on my FLAG column logic if i am saying <0 then this row is flagged as 1.

 

How to avoid this or how to work around the logic in the FLAG column so that the 'No of Day's is not flagged as 1.

 

Any thoughts please.

Thanks

4 REPLIES 4
ShankerV
17 - Castor

Hi @suby

 

Can you please add the input file also and the solution expected.

So I can do the solution which will work for you

 

Shanker V

suby
11 - Bolide

Hello Shanker,

 

Unfortunately i cannot provide my input file due to security reasons but as mentioned I'm  looking for a solution  for FLAG column where by it flags the No of Days since it holds the value of -15.

 

Thanks

DataNath
17 - Castor

Hey @suby, if I'm reading into this right then you should just be able to add an extra condition like so that specifies that the value in the [Name] column shouldn't be 'No of days':

 

DataNath_1-1667223382550.png

 

if Contains([Value],"Redacted User") or (tonumber([Value]) < 0 AND [Name] != 'No of days')
then 1
else Null() endif
suby
11 - Bolide

Hello Datanath,

 

Thanks that's a clever and smart solution and that did the trick thanks much appreciated.

 

Thanks

Labels