Yes, this is absolutely achievable in Power Apps. Here's a clear, step-by-step approach to replicate your Excel structure into a Power Apps canvas app form:
✅ Step-by-step Guide to Achieve Your Excel Logic in Power Apps
Step 1: Prepare your data source
You can store your Excel data in:
SharePoint List
Dataverse
Excel Online (OneDrive) (least recommended for complex apps)
For scalability and ease of management, SharePoint List or Dataverse is recommended.
Example structure for SharePoint List:
| Column Name |
Type |
Description |
| Title |
Single Line Text |
(e.g., Huey Pierce Long) |
| Location |
Single Line Text |
(e.g., PENNSYLVANIA, MASSACHUSETTS) |
| Section |
Single Line Text |
(e.g., Section1, Section2) |
| Response |
Choice (Yes/No) |
Dropdown for selection |
Step 2: Set up your Power Apps Canvas App
Create a new Canvas app and connect your data source.
Add a Gallery or Data Table to display rows and columns clearly.
Step 3: Dynamic layout for your app
To achieve a similar tabular structure:
-
Add a Gallery:
-
Insert Textboxes for Columns B, C, D:
Example for textbox default property:
ThisItem.Title
Step 4: Dropdown (Yes/No Selection)
Within your gallery, add dropdown controls for column E, F, etc.
Set dropdown items as:
["Yes", "No"]
ThisItem.Response.Value
Step 5: Calculate Percentage
Example Percentage Calculation (for PENNSYLVANIA):
Text( (CountRows(Filter(YourDataSource, Location = "PENNSYLVANIA", Response.Value = "Yes")) / CountRows(Filter(YourDataSource, Location = "PENNSYLVANIA"))) * 100, "[$-en-US]#%" )
Replace "PENNSYLVANIA" with your location names accordingly.
Step 6: Handle Multiple Locations and Parameters
Example collection loading in OnStart:
ClearCollect( Locations, Distinct(YourDataSource, Location) );
Step 7: Submit Edited Data
ForAll( Gallery1.AllItems, Patch( YourDataSource, LookUp(YourDataSource, ID = ThisRecord.ID), { Title: YourTextBox.Text, Response: {Value: YourDropdown.Selected.Value} } ) )
If you encounter any issues or require further customization, feel free to ask!