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

Unique Not giving correct result

bishtpriyanka
7 - Meteor

Hi,
I am working on a workflow that combines data from multiple sources using Union and then trying to find unique records from that.
The issue is Unique is not giving correct result.
Below is the screenshot for the same.
Output from the filter tool: It gives 3 records (All are same)

bishtpriyanka_0-1615784486669.png

Output of Unique Tool: U anchor gives no unique records

bishtpriyanka_1-1615784734516.png
Output of Unique tool: D anchor also gives no records

bishtpriyanka_2-1615784797842.png
The weird thing is if I copy paste the Output of filter tool into a text input and then do a unique, its giving correct result:

bishtpriyanka_3-1615785393173.png

bishtpriyanka_4-1615785465751.png


I am also attaching all screenshot. Has anyone faced similar issue before?

Regards,
Priyanka

 

 

 

 

7 REPLIES 7
HW1
9 - Comet

Try the data cleansing tool and select tools before you push them into the unique tools.
The data cleansing tool will remove any whitespaces if there and the select the right column type.

Qiu
20 - Arcturus
20 - Arcturus

@HW1 
This is very strange.

Would it be possible to upload a sample workflow so we can replicate the issue at our end?

HW1
9 - Comet

@Qiu Are you referring to me? Its not my question.
I am helping @bishtpriyanka 

Qiu
20 - Arcturus
20 - Arcturus

@HW1 
So sorry about that.

Lets hear from @bishtpriyanka 😁

bishtpriyanka
7 - Meteor

Hi @Qiu,
When I am taking the results from my workflow and passing it via text Inputs, the unique is working fine. So I am not able to replicate the issue 😕

HW1
9 - Comet

That would mean the data type is being changed from the original to when you port them to the text input tool.
Try using the select tool to harmonise data types (and then the data cleansing tool to remove any whitespaces) before you pass into the unique tool. See how it turns out.

bishtpriyanka
7 - Meteor

Yes, it worked. I changed the data type from String to Int and it worked!

Thank you! 🙂

Regards,
Priyanka

Labels