web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Random variable Values...
Power Apps
Unanswered

Random variable Values in a quiz

(0) ShareShare
ReportReport
Posted on by

Hi there 

 

I am trying to create a quiz that random updates everyday with new variables, for example:

 

In the last "Time variable" days, how many times was "Process type variable" completed?

 

I have looked at SharePoint options with a flow but can't differentiate between columns so it would have to have an item for every single combination, which with 5 variables would take a while to make.

 

Does anyone know of a more simplistic method, not necessarily using SharePoint just whatever is easiest 

 

Thank you. 

Categories:
I have the same question (0)
  • timl Profile Picture
    36,393 Super User 2025 Season 2 on at

    @RGAero 

    To help you better, it might be useful if you could explain the expected data source for your variables.


    >> In the last "Time variable" days, how many times was "Process type variable" completed?

     

    If you want a random number to set a "Time variable", you can call the Rand() function. For example, here's how to create a random number between 1 and 100.

    With({randMin:1, randMax:100},
     RoundDown(Rand()*(randMax-randMin + 1) + randMin,0)
    )

    If you store the process type values in SharePoint list, you can call the Shuffle function to return a random row, and you can use that to set your "Process type variable".

    First(Shuffle(YourProcessTypeList)).ProcessTypeDescription

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard