cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

PowerApps to create a Spreadsheet for data collection

Hi,

 

I was wondering if there is a way to use the Gallery template to create a spreadsheet with columns. This spreadsheet would then be distributed among users to input fields such as regio, industry, product (descriptive variables) and sales targets (numeric variables). 

 

I would also like to be able to include business rules for each column field such as:

  1. 20 geographic regions
  2. 15 industries
  3. No decimal in numeric data

I am new to PowerApps; therefore, any feedback on my query would be much appreciated.

 

Samata

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: PowerApps to create a Spreadsheet for data collection

Hi @Anonymous ,

Could you please share a bit more about your scenario?

Do you want to configure the Gallery control as a Editable Grid spreadsheet?

 

If you want to configure  the Gallery control as a Editable Grid spreadsheet within an app, please check and see if the following video would help in your scenario:

https://www.youtube.com/watch?v=O2WqhRTUhyw

https://www.youtube.com/watch?v=41Mpgn7svLs

 

If you also want the each column Text box in your Gallery to match the conditions that you mentioned, please take a try with the following workaround:

For the first and second condition, you could consider add two Dropdown controls within your Gallery to list the 20 available geographic regions and 15 industries. Set the Items property of the Dropdown1 to following (force users to select value from the available options) :

["Region1", "Region2", "Region3", ...., "Region20"]

set the Items property of the Dropdown2 to following:

["Industry1", "Industry2", "Industry3", ....]

When you want to reference the selected value/option from above Dropdown boxes, please use the folllowing formula:

Dropdown1.Selected.Value
Dropdown2.Selected.Value

 

For your third condition, I think the IsMatch function could achieve your needs. Please consider set the OnChange property of each Column field Text Box (TextInput1, TextInput2, TextInput3, ...) in your Gallery to following:

If(
   IsMatch(TextInput1.Text, "\d+\.\d+"),
   Notify("The number value type could not contain decimals", NotificationType.Error);Reset(TextInput1)
)
If(
   IsMatch(TextInput2.Text, "\d+\.\d+"),
   Notify("The number value type could not contain decimals", NotificationType.Error);Reset(TextInput2)
)
If(
   IsMatch(TextInput3.Text, "\d+\.\d+"),
   Notify("The number value type could not contain decimals", NotificationType.Error);Reset(TextInput3)
)

...

...

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: PowerApps to create a Spreadsheet for data collection

Hi @Anonymous ,

Could you please share a bit more about your scenario?

Do you want to configure the Gallery control as a Editable Grid spreadsheet?

 

If you want to configure  the Gallery control as a Editable Grid spreadsheet within an app, please check and see if the following video would help in your scenario:

https://www.youtube.com/watch?v=O2WqhRTUhyw

https://www.youtube.com/watch?v=41Mpgn7svLs

 

If you also want the each column Text box in your Gallery to match the conditions that you mentioned, please take a try with the following workaround:

For the first and second condition, you could consider add two Dropdown controls within your Gallery to list the 20 available geographic regions and 15 industries. Set the Items property of the Dropdown1 to following (force users to select value from the available options) :

["Region1", "Region2", "Region3", ...., "Region20"]

set the Items property of the Dropdown2 to following:

["Industry1", "Industry2", "Industry3", ....]

When you want to reference the selected value/option from above Dropdown boxes, please use the folllowing formula:

Dropdown1.Selected.Value
Dropdown2.Selected.Value

 

For your third condition, I think the IsMatch function could achieve your needs. Please consider set the OnChange property of each Column field Text Box (TextInput1, TextInput2, TextInput3, ...) in your Gallery to following:

If(
   IsMatch(TextInput1.Text, "\d+\.\d+"),
   Notify("The number value type could not contain decimals", NotificationType.Error);Reset(TextInput1)
)
If(
   IsMatch(TextInput2.Text, "\d+\.\d+"),
   Notify("The number value type could not contain decimals", NotificationType.Error);Reset(TextInput2)
)
If(
   IsMatch(TextInput3.Text, "\d+\.\d+"),
   Notify("The number value type could not contain decimals", NotificationType.Error);Reset(TextInput3)
)

...

...

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,645)