ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com 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.
解決済み

Allocate quarterly data into weekly buckets

creddy
メテオロイド

I'm trying to divide quarterly data into 13 equal weeks of data. Dividing it by 13 wouldn't work since they need to be whole numbers.

Essentially the output would need to take the entire number and divide it by 13 and then equally allocate them into each week until the total is reached. The last week would have a lower number than the rest of the weeks.

If the total is less than 13, each week will have 1 unit until it reaches the total.

 

Hope I explained the issue properly. Any help with this would be greatly appreciated.

 

 

Thanks

3件の返信3
ponraj
パルサー

Possible to share sample data ?

danrh
パルサー

Something like this?

image.png

This divides by 13 and rounds down to next next whole number, generates 13 records and adds this new weekly value to each of those, then divides up the remainder starting with week 1.

 

Hope it helps!

creddy
メテオロイド

This is perfect.

Thank you.

ラベル
トップのソリューション投稿者