cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Samata
New Member

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
Community Support
Community Support

Re: PowerApps to create a Spreadsheet for data collection

Hi @Samata ,

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
Community Support
Community Support

Re: PowerApps to create a Spreadsheet for data collection

Hi @Samata ,

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

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