Alteryx Designer Desktop Discussions

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

Get values of a column based on the quarter and check if current Quarter or the previouse

messi007
15 - Aurora
15 - Aurora

Dear Alteryx Community,

 

My case is to get the value of a column based on the quarter and check if current Quarter or the previous one

 

 DateValue
12020 Q2100
12020 Q350
22020 Q220
32020 Q330

 

Based on the quarter I want to extract Q which is Q3 in this case and Q-1 which is Q2 in this case

 TT-1
150100
2020
3300

 

However Image that for next year we will have 2021 Q1 and 2020 Q4 so T will be the information related to Q1 and T-1 will be information related to Q4

 

I have done this using a tile that will give -1 for small quarter and 1 for the bigger based on the last degite of the quarter but it will not be correct if we will compare Q4 2020 and Q1 2021

 

 

Best Regards,

2 REPLIES 2
atcodedog05
22 - Nova
22 - Nova

Hi @messi007 

 

I dont know how feasible this is. But it should give you some idea.

Here is a workflow for the task.

Workflow:

atcodedog05_0-1608024143892.png

 

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

messi007
15 - Aurora
15 - Aurora

@atcodedog05,

 

Thanks for the quick reply 🙂 I really appreciate your help

It helps but don't solve the problem as you are falling manually the Quarter : IIF(Right([Date], 1)="3",[T-1], [T]) next quarter will be 4 and it will not work.

Below How I have done it using a sort and multi row formula 🙂

 

messi007_0-1608028043207.png

 

Best Regards,

 

Labels