This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Alteryx Gallery is experiencing a problem in which system emails are not being sent out. As a result, if you are attempting to sign up for a new account, you may be unable to verify your email address. We are working to solve this as soon as possible and will remove this notice once resolved.
I am writing a workflow which breaks and sorts a data set into 4 separate parts and then generates a file for each data set. Occasionally, one of the 4 sorted data sets will have no information. I am looking to conditionally generate a blank row of dummy data when this happens. Is that possible?
That isn't so straight-forward. The output that you are looking for is a blank row of dummy data. Dummy data would likely need to be consistent with the data types of other output values for the fields. If you union a dummy row (make it 1st), then you can use a multi-row formula and create a NEW field "DELETE" if the DUMMY data is detected and more data is present afterwards. Then you could filter to keep/drop the dummy data if DELETE result says that more data is present. Now you can use a SELECT tool to remove the fields.
Alteryx ACE & Top Community Contributor
Chaos reigns within. Repent, reflect and reboot. Order shall return.
You can use the Count Records tool like this and append it to your dataset. That ensures that even if there are zero records, one record will be created to overwrite the sheet. The value for your empty columns will be null.
If your columns are numeric, a Data Cleanse tool can be used to change the nulls to zeros.
Hope this helps.
If you don't want the Count column in your output, can can add a dynamic select tool with formula [Name]!='Count'.