In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to export single row of statistics?

nrossin
8 - Asteroid

I have a workflow that outputs to a database. I need to add another output to append to an Excel sheet that functions as a log of sorts.

 

The data exported to the spreadsheet should be a single row, containing a value from the main dataset, the total count of rows in the main dataset, and today's date.

 

I have tried several ways of doing this using the Summarize and Count Records tools, but I can't get the additional fields from the main dataset to be included.

 

For example, suppose this is my main dataset (the "Report Date" column will always contain the same value for each row):

+-------------+------------------+---------------+--------+
| Report Date |  Customer Name   | TransactionID | Amount |
+-------------+------------------+---------------+--------+
| 2019-11-01  | Roy Scheider     |             1 |  43.22 |
| 2019-11-01  | Robert Shaw      |             2 |  81.04 |
| 2019-11-01  | Richard Dreyfuss |             3 | 569.14 |
+-------------+------------------+---------------+--------+

 

Now, I need to export a single row that contains the Import Date, today's date, and the total # of rows:

+-------------+-------------+--------+
| Import Date | Report Date |  Total |
+-------------+-------------+--------+
| 2019-11-15  | 2019-11-01  |      3 |
+-------------+-------------+--------+

 

How can I do this?

2 REPLIES 2
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @nrossin,

 

Is this what you're looking to achieve?

 

image.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

nrossin
8 - Asteroid

Yes, exactly! I needed to see how you configured the Summarize tool because I could not grasp that part. Thank you.

Labels
Top Solution Authors