Quantcast
Channel: Data Preparation & Blending discussions
Viewing all 4999 articles
Browse latest View live

Run rules on a 2nd File to then use as a Lookup

$
0
0

Hi All

 

Just started using Alteryx, enjoying it!

 

I have created my first workflow that takes my data and enriches it in many ways.

 

I have a 2nd file that I wish to use as a lookup and pull fields into my main file above, but this file needs treating in a couple of ways first such removing the top two rows and removing duplicates.

 

Can this be done in the first workflow or do I need to do a separate workflow and output it to perhaps a file that is written over and linked as a lookup to my main flow above?

 

Hope my question is clear!

Ajay


Unexpected error with In-DB commands

$
0
0

Hi

 

I am using the Alteryx In-DB commands to read in and then output data from an SQL server. My module has been working fine for the past three months (with Alteryx 9.5, 10.1 and now 10.5). It was working fine today as well but suddenly there is a new error: 

 

Error: Data Stream Out (44): Error SQLExecute: [Microsoft][ODBC SQL Server Driver][SQL Server]Conversion failed when converting date and/or time from character string.

 

I have checked online and I realize that this is an SQL error but why would it start showing up suddenly? I am using the same data as before. 

 

The same error was displayed to a colleague when he tried running the module a week back but the module was working fine for me until today. I did not update any drivers while I was working (unless windows did that automatically).

 

In the attached document, you can see that the In DB browse is working fine just before the join but after the join, it cannot output the data stream to the Alteryx workflow or show the data In DB. Thanks for your help!  

Extract Emil Attachment

$
0
0

Hi,

 

I am just wondering if it possible that I can extract email attachment as the input of the workflow.

For example, I can create an email account 'receive@gmail.com' to accept files.

Then set a workflow on the server,  any time this workflow get email, it will read the attached file and run the workflow.

 

Is it possible? From what I know, it could be a macro tool.

 

 

 

Parse Attributes with Proper Output Using Commas and 'And'

$
0
0

Using the table below my goal is to have a properly formatted string I can use for reporting purposes. I would filter based on whether the column attributes included "Improve" and concatenate them. However, I'm not too sure how to go about formatting the Result properly by removing additional "Improve"'s and using commas and the word 'and' when appropriate. Thanks in advance for suggestions!

 

IDProdDessertProdSuppliesProdFoodProdFoodSvcResult
1Improve Dessert SalesOk Supplies SalesHigh Food SalesOk Food Services SalesImprove Dessert Sales
2Ok Dessert SalesOk Supplies SalesImprove Food SalesOk Food Services SalesImprove Food Sales
3Ok Dessert SalesOk Supplies SalesOk Food SalesOk Food Services Sales 
4Ok Dessert SalesOk Supplies SalesImprove Food SalesImprove Food Services SalesImprove Food Sales and Services Sales
5Improve Dessert SalesImprove Supplies SalesOk Food SalesImprove Food Services SalesImprove Dessert Sales, Supplies Sales and Food Services Sales

Removing characters based on FIND

$
0
0

Hi,
Can anyone tell me what the Alteryx formula equivalent should be for this excel statement?
=LEFT(J3,(FIND(":L",J3,1))-1)

 

The "J3" cell in this case is a column called "Ad Name" and we are trying to convert a value like this:


Sample|FY16|Sample|CPM|1x1|RON|CRM|EE75+||PC|V|SSIC|P|Deal ID_:15_EE No Kids:L13686562_04/29

to be shortened based on where it finds ":L" to be:

Hotwire|FY16|Turn|CPM|1x1|RON|CRM|EE75+||PC|V|SSIC|P|Deal ID_:15_EE No Kids

 

Thanks!

Help with standardizing variations of values

$
0
0

I frequently get lab test results in many different formats. I want to create a macro to standardize all the different variations and thought fuzzy matching would be the best approach. But I'm having difficulty knowing how to set up the fuzzy match.

 

In the attached workflow, I have some of the variations I run into, including single-letter results, misspellings, etc. Could someone help me figure out how to set up the fuzzy matches to standardize these variations? Can anybody tell me if there's a better approach?

IsNumber does not seem to work in Alteryx 10.5

$
0
0

Just wondering if someone else could test this as it doesn't appear to be working for me in 10.5? It used to work for Strings (when a integer was formatted as a string) but now it only appears to work for Numbers (when formatted as numbers). Thanks

Effective Date Filtering

$
0
0

I am trying to filter a database by most recent date in an effective date field, but I want the most recent date BY employee. Here is an example of what the database looks like (with the blue-font rows the ones I want returned):

Employee IDNameJob TitleDepartmentEffective DateActionStatus
504682Germain IfediAnalystMarketing9/1/2015HireActive
504682Germain IfediAnalystMarketing4/15/2016Pay RaiseActive
504682Germain IfediAnalyst IIMarketing5/1/2016PromotionActive
701665Jarran ReedSpecialistCustomer Service5/20/2016HireActive
985222CJ ProsiseAnalystPlanning12/1/2013HireActive
985222CJ ProsiseAnalystPlanning4/15/2014Pay RaiseActive
985222CJ ProsiseAccountantFinance11/3/2014TransferActive
985222CJ ProsiseAccountantFinance4/15/2015Pay RaiseActive
985222CJ ProsiseAccountantFinance4/30/2016RetirementInactive
128761Nick VannettSpecialistCustomer Service1/13/2016HireActive
128761Nick VannettSpecialistCustomer Service3/27/2016TerminationInactive
199744Rees OdhiamboSr AnalystPlanning8/19/2015HireActive
199744Rees OdhiamboManagerPlanning4/15/2016Pay RaiseActive

 

Does anyone have any advice on how to create that filter?


Update multiple in-DB filter

$
0
0

Good day, I have large time series data kept in different databases. To form a single all-in-one table I filter each in-db workflow to the smallest dataset possible before Data Stream Out and join them. Is there a way to update multiple filters in one go?

Lognormal Distribution Cumulative Function

$
0
0

Hi everyone,

 

I'm a new user of Alteryx and come across a challenge that I don't know how to realize a function the same as EXCEL LOGNORMDIST(x, mean, standard_dev).

 

I'm wondering if there is any macro can help or what kind of tools I should use?

 

If you have any idea about this problem, please leave a solution here, it will help me a lot!

 

Thanks for your kind help!

Maureen

Cartesian Product with a calculated field

$
0
0

Hello folks

 

New to alteryx so please bear with my noob skills.

 

I'm trying to replicate a cartesian product we perform in MS Access at the moment, wherein we create a field that is calculated for every combination of fields in Tables A and B. Example below:

 

Table A

Date

1/1/2015

1/2/2015

1/3/2015

 

Table B

Monthly_Amount                       Type

350                                            A   

400                                            B

200                                            A

 

I need the output to look like:

Date                                           Type                                           Amount

1/1/2015                                     A                                                550

1/1/2015                                     B                                                400

1/2/2015                                     A                                                550

1/2/2015                                     B                                                400

1/3/2015                                     A                                                550

1/3/2015                                     B                                                400

 

(Simplistic example of course: the actual calculation needs a lot of calculation and user defined functions likely, but I'll leave that for another post)

 

Thanks much!

Dynamic Input Tool Skipping Duplicate Queries

$
0
0

I'm using the dynamic input tool and everything seems to be working correctly, however, it appears that the dynamic input tool is optimized for speed and skips duplicate queries.  Is there a way to configure the tool so that duplicate queries are not skipped.  I'm trying to look-up some values and then join to another data set. The query skipping is causing my data sets to have a different number of records and my join is not working.

Update a row with a preceeding value for multiple values

$
0
0

As per the attached image. 

 

I have 2 data sources I am trying to blend 

One source contains telematic vehicle data containing registration/event datetime/ event and where it has intersected a geofence I created to identify the pick up and drop off location. It is a continuous stream of data.

 

The second source contains booking data and includes vehicle registration, pick up and drop off datetime & location.

 

I am trying to append the booking information onto the telematics but are struggling to come up with a way to insert the booking Number into each data point of the telematic data. 

 

I attach image of what I would like to achieve- All of the yellow values should contain the booking number found at the beginning and end of each block. The red should remain null as there are no bookings in this period.

 

Any suggestions on how to solve this within a workflow muchly appreciate- Outside a workflow solutions welcome too

 

thanks

Scott

Grouping by rows

$
0
0

Hi All,

 

Have a question

 

I have data like the below, the purpose of this report is to find the most popular products betwee multiple retaielr

 

RETAILER PRODUCT NAME

Retailer 1      PRODUCT 1

Retailer 1      PRODUCT 2

Retailer 1      PRODUCT 3

Retailer 1      PRODUCT 4

Retailer 1      PRODUCT 5

Retailer 2      PRODUCT 1

Retailer 2      PRODUCT 2

Retailer 2      PRODUCT 3

Retailer 2      PRODUCT 4

Retailer 2      PRODUCT 5

 

I'd like to convert this (potentially with transpose I think?) so that the data looks like this:

 

RETAILER 1  RETAILER 2

Product 1       Product 1

Product 2       Product 2

Product 3       Product 3

Product 4       Product 4

Product 5       Product 5

 

How would I go about ensuring that the retailer names are now the headers?

 

Cheers!

 

Alex

Same parameter to multiple SQL Statements (without lots of Action tools)

$
0
0

Hi everyone,

 

I'm trying to use the same control parameter to update several SQL Statements.

For example, I have a parameter_value parameter and a lot of In-Db and Output tools that have queries such as:

SELECT * FROM table WHERE parameter_id = parameter_value.

 

I'm replacing parameter_value in these tables using the Action tool, but I need a new Action tool for every single replacement. This is making the workflow a little 'polluted'. Is there any way to use a single tool (or, at least, less that one for each replacement) to achieve this? 

 

Thanks in advance.


DD-MMM-YYYY date not being accepted by Alteryx

$
0
0

Hi All

 

I have a Date field in my data that is in the format  of DD-MMM-YYYY, when I run my workflow Alteryx Designer is not recognising it as a Date.

 

I have looked at the Date Parse Function, but I cannot workout how to get Alteryx to accept this as a date.

 

Any help appreciated!

 

Pivoting the data

$
0
0

Hi,

 

I've a dataset that looks like this(demo only, I've more columns in it)

TitleMrMrs
NameJohnAlice
SurnameAdamsAdams
Address3z4z
Phone123456

What I want to do is to pivot the data in a way that my new headers are the values from first column and the rest follows the suit. Exactly how it looks below.

 

TitleNameSurnameAddressPhone
MrJohnAdams3z123
MrsAliceAdams4z456

I tried using Cross Tab to do this but it works partially as it only allows me to select one column for values hence I lose all the info in the third column.

Is there a way to do this, bearing in mind that the dataset is much larger and there are more columns. 

 

Thanks

REGEX PARSE FILE PATH

$
0
0

I'm trying to parse the part of a file path that comes after the last backward slash. So for example, C:\1\2\3\4 would return "4".  I found an expression on RegexPal that worked there, but not in Alteryx. It is: ([^\\\\]+$)

 

When I try this in Alteryx, it returns null. What is the Alteryx version of this? 

Thanks. 

 

Cross reference based on multiple columns

$
0
0

Hi, 

 

As in the example below, I have table 1 with ID numbers of visitors and the pattern of stores they visited and table 2 with the distance between every combination of stores.

 

Table 1:

IDStore
1a
1b
1c
1a

 

Table 2:

RowIDOriginDestinationDistance
1aa50
2ab40
3ac100
4ad70

 

I need to add the distances from table 2 into table 1 depending on the patterns of stores visited. Ideally, the resulting table would like:

IDOriginDestinationDistance
1ab40
1bc60
1ca100

 

I may need to do some rearranging of table 1 and something like a vlookup to reference table 2, but I am unsure of the best method to use. Any suggestions would be helpful.

 

Thanks!

DateTimeParse: numeric variable switched type: what does it mean?

$
0
0

I have a file with a number of columns, all imported into Alteryx as numbers, that look like 20160215.

I have set up this multi-field formula to convert them into dates:

DateTimeParse(ToString([_CurrentField_],0),'%Y%m%d')

setting change output type to date.

 

It works on most fields, but on 2 fields I get the error 'numeric variable switched type'.

If I then open the multifield formula tool, I see the field in question has become yellow, and the text (bad field type) next to its name.

 

What does it mean? I haven't found it documented anywhere.

 

I have verified that the length of the 2 fields which give me this error is always 8, as it should be.

 

Any ideas? Thanks.

 

By the way, I find it extremely frustrating that Alteryx produces error messages which are not properly documented anywhere.

Also, other ETL tools have the option to output the records which produce errors to a separate workflow, so that you can understand what's causing the error. When will Alteryx start implementing this basic but very useful feature?

Viewing all 4999 articles
Browse latest View live


Latest Images