We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Trailing 8-Weeks Historical Report

vivaisun11
8 - Asteroid

Hello.

I am trying to create a report that sends our vendors an 8-week history of their on-time performance.

Our vendors sometimes do work on one week, but don't do work on another week.

For the weeks that I don't have any data, Alteryx completely eliminates the entire row.

How do I create a formula to show that they "didn't execute work" in a particular week, and still show 8 weeks history in the report?

Please see attached current view, and final preferred view.

 

vivaisun11_0-1755648295205.png

 

6 REPLIES 6
KGT
13 - Pulsar

Create another Input and Join to this with a Union to join the J with whichever of the L/R you need. So, the input could be a Generate Rows to generate the required lines, followed by a formula that makes the Week No. column.

 

You can of course, Insert text into a column etc before the union, if you want it to say "No work Entered".

 

Workflow:

Screenshot 2025-08-20 115142.png

 

Generate Rows:

Screenshot 2025-08-20 114811.png

Qiu
21 - Polaris
21 - Polaris

@vivaisun11 
How do you determine the start and end week of your 8-week histroy?

vivaisun11
8 - Asteroid

Thanks, will test this out!

vivaisun11
8 - Asteroid

The current week is the start week.

And I need 8 weeks minus current week. I used this formula for current week - "ToNumber(DateTimeFormat(DateTimeToday(),'%U'))+1"

vivaisun11
8 - Asteroid

@KGT Thanks. I'm partially there - I'm able to generate the rows for the 8 weeks using the MIN and MAX.

I have other vendors data in the same source dataset where the other vendors DID execute on the weeks that some vendors haven't. So when I join the newly generated rows, it is joining with rows that already exist in the data, instead of the missing weeks.

Not sure if I was able to explain that clearly.

KGT
13 - Pulsar

Not sure how you identify the other vendors, but don't think to **bleep** this one, as you may rabbit hole. You just need to also join on the vendor field. So in the formula, create a field for the vendor and join that to the vendor field on the other side. How dynamic you make that depends on what else the data looks like and how you want to present it otherwise. The other option is filtering to just this vendor before the join... either way will work, just depends on what's happening after that.

Labels
Top Solution Authors