Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Randomly Generating number in multiple column which sumup to 100

gauravnegi2
8 - Asteroid

I want to generate multiple columns according to my input and want the data to be filled randomly and when i sum up the columns the sum should be 100.

for example:- i want to generate 8 columns from column no 1 to column no 8  and there is data in each column and when i sum up the columns the totals comes up with 100.

 

 

12345678Check
1312111310141710100
1211121412161310100
101718101112184100

 

Thanks in advance

7 REPLIES 7
echuong1
Alteryx Alumni (Retired)

Do you have a threshold for upper and lower limits of the numbers being generated?

vizAlter
12 - Quasar

@gauravnegi2 — You may want to follow this post (Link) which is quite similar to your ask.

 

gauravnegi2
8 - Asteroid

@echuong1  thanks for the reply.

 

Yes the lower limit i have is 5 and the upper limit is 17

atcodedog05
22 - Nova
22 - Nova

Hi @paulfound 

 

Would you like to give a try at it.

 

Since you were able to solve the previous scenario.

 

Cheers and Happy Analyzing : )

 

 

paulfound
11 - Bolide

Thanks @atcodedog05 Another distraction for a Friday afternoon! lol

 

Hi @gauravnegi2 

 

I used the answer to this question i came up with How-do-I-generate-10-unique-random-numbers-between-1-and-100 

 

I turned the workflow into a macro and cross tab'd the table to show as you wanted.

 

2 things, there is no upper and lower limit feature and the numbers that it produces are unique rather than truly random.

 

let me know what you think.

 

PaulFound_0-1600438576869.png

PaulFound_1-1600438610372.png

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @paulfound ,

 

What can i say, you did an amazing job on the previous challenge.

It was really inspiring and a great learning.

 

Had to pulled you out.

gauravnegi2
8 - Asteroid

Thank you @paulfound i saw you solution in Gnans post. You are too good with your logic's thank you again.

Labels