Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Calculate Top 7 quarters

Andrew_Seaman
6 - Meteoroid

I have a table like this:

 

Andrew_Seaman_0-1622745753525.png

 

I used this formula to calculate the Current Quarter:

 

IF DateTimeToday() >= [Start] AND DateTimeToday() <= [End] THEN "Y" ELSE "" ENDIF

 

How can I get a column for top 7 Quarters that looks like this?

 

Andrew_Seaman_1-1622745809933.png

 

 

 

4 REPLIES 4
mceleavey
17 - Castor
17 - Castor

Hi @Andrew_Seaman ,

 

Can you please attach the data and we'll build it for you.

 

M.



Bulien

Andrew_Seaman
6 - Meteoroid

Here is the data.

atcodedog05
22 - Nova
22 - Nova

Hi @Andrew_Seaman 

 

Here is how you can do it.

 

Workflow:

atcodedog05_2-1622786604346.png

 

1. Using formula tool i am doing same calculation as yours for current_quarter

2. Using Mult-row formula tool by setting Num Rows as 6 i will be able to look into 6 rows below(+6) and above (-6). If any of the below rows (current to +6) [Current_Quarter]="Y" then set that rows [Top_7_Quarter]="Yes"

 

hope this helps 🙂

mceleavey
17 - Castor
17 - Castor

@Andrew_Seaman ,

 

In addition to @atcodedog05 's formula approach, I've also built this without using any formulae (other than yours):

 

mceleavey_0-1622796534584.png

 

mceleavey_1-1622796585498.png

 

M.

 



Bulien

Labels
Top Solution Authors