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.
SOLVED

Weekdays as name for the column

soncoku
9 - Comet

I have a table with records like below:

 

IDDATERevenueDay

5001

01-06-2020

20Monday
500106-06-202025Saturday
500408-06-202024Monday
500408-06-202022Monday
500414-06-202036Sunday

 

 

What I want to achieve is this:

 

Using the filter to automatically get the data of current week and then get the result like below

 

IDRevenue

Period

500482

08.14-06-2020     

   

 

08 == Monday of this week

14 == Sunday of this week

06 == month

20 == year

 

 

 

Any suggestions?

5 REPLIES 5
MarqueeCrew
20 - Arcturus
20 - Arcturus

@soncoku ,

 

if you filter by day = "Monday", you could sort on date descending. Then you could sample the first 1 records. Using an append fields Tool, is is possible to spend the date to each of the original records as Date2. 

Now you can filter on date >= date2. 

summarize by id and sum revenue and you're done!

 

 Cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
bhrmitra
10 - Fireball

Hi 

 

I hope I have understood your problem statement correctly.

 

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

 

Thanks,

Abhra Mitra

soncoku
9 - Comet

that's perfect.

 

Now I've taken another workflow to another level.

IDMONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAYSUNDAY
50012002050006090

5002

300405020256510
5003690557080101060

 

i HAVE THAT 

And I want to achieve this:

 

IDRevenuePeriod
500142008.14-06-2020
500251008.14-06-2020

 

I only have the weekdays, but the values on the weekdays are always this weeks data.

So I need something that get's the current week and finds whats the date for Monday an Sunday for this week 

For example :

Monday == 08

Sunday == 14

 

So that last column would have 08.14-06-2020

Do you think you could help me this too?

bhrmitra
10 - Fireball

Hi  

 

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

 

Thanks,

Abhra Mitra

soncoku
9 - Comet

Thank you very much.

You sir, you deserve a medal 😄

 

The solution was very efficient and the code was professionally structured.

Labels
Top Solution Authors