Creating and Modifying Views
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 12 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Building Model-Driven Apps: Mastering Views in Power Apps
Introduction: The Power of Perspective
In the ecosystem of Microsoft Power Apps, model-driven applications rely on a structured approach to data management. Unlike canvas apps, where you manually place every button and label, model-driven apps derive their user interface and structure from the underlying Dataverse schema. At the heart of this structure lies the "View." A view is essentially a saved query that determines how a list of records is presented to the user. It defines which columns are visible, the order in which data appears, and the specific filters applied to the dataset.
Why does mastering views matter? Because a well-designed app is only as useful as the information it presents. If your users are forced to scroll through thousands of records to find the one they need, your application will fail to drive efficiency. Views allow you to slice and dice your data to provide context-aware information. Whether it is a sales manager looking at "My Open Opportunities" or a support agent viewing "High Priority Tickets Assigned to Me," views are the primary mechanism for data navigation. Understanding how to build, modify, and optimize these views is a fundamental skill for any Power Apps developer aiming to create professional-grade business solutions.
Not read yet
Understanding the Anatomy of a View
A view in a model-driven app is not just a spreadsheet-like grid. It is a sophisticated configuration object that dictates the user experience for data consumption. When you configure a view, you are interacting with several distinct components that work together to shape the final output.
The Core Components
- Columns: These are the fields from your Dataverse table that you choose to display. You can include fields from the primary table or related tables (via lookups).
- Filters: This is the logic that decides which records show up in the list. You can use simple operators like "equals" or "contains," or build complex logic using groups and "AND/OR" statements.
- Sort Order: This defines the initial sequence of records. You can sort by a single column or multiple columns to ensure consistency in your data presentation.
- View Properties: These settings control the name, description, and accessibility of the view within the app.
Callout: Views vs. Forms It is helpful to think of a Form as a "deep dive" into a single record, while a View is a "bird's eye view" of a collection of records. Forms are for editing and detailed inspection, whereas Views are for scanning, sorting, and bulk-action operations. You cannot have a high-performing app without balancing both.
Not read yet
Step-by-Step: Creating a New View
Creating a view is a straightforward process, but it requires a clear understanding of the business requirement before you begin. Follow these steps to create a custom view in the Power Apps maker portal.
- Navigate to the Table: Log into [make.powerapps.com], select your environment, and go to the "Tables" section. Select the table you want to work with.
- Access the Views Tab: Once inside the table editor, you will see a tab labeled "Views." Click on it to see the existing system and personal views.
- Initialize the View: Click the "+ New view" button. You will be prompted to provide a name and an optional description. Choose a descriptive name, such as "Active Projects by Status," rather than something generic like "View 1."
- Configure the Grid: The view editor will open. Use the "View columns" pane on the right to add fields. You can drag and drop columns to reorder them or use the "Add view column" button to search for fields.
- Apply Logic: Use the "Edit filters" button to open the filter builder. Add your criteria, such as "Status equals Active."
- Set Sort Order: Click on the column header you wish to sort by and select "Sort A to Z" or "Sort Z to A." You can also set multi-level sorting in the properties pane.
- Save and Publish: Once you are satisfied with the configuration, click "Save" and then "Publish." Without publishing, your changes will not be visible to users in the production app.
Not read yet
Advanced Filter Configuration
The power of views lies in their filtering capabilities. Simple filters are often insufficient for complex business scenarios. For example, you might need to show records where the "Created On" date is within the last 30 days, OR the status is set to "Escalated."
Using Filter Groups
When you click "Edit filters," you can add new rows of criteria. However, if you have multiple conditions, you must use groups to ensure the logic evaluates correctly. By selecting multiple rows and clicking "Group," you can force the system to treat those conditions as a single unit. This is vital when mixing AND and OR logic.
Relative Date Filtering
One of the most useful features for business users is the ability to filter by relative dates. Instead of hardcoding a date, you can use "Last X Days," "Next Month," or "This Fiscal Year." This ensures that your view remains evergreen without needing manual updates every day.
Note: When using relative date filters, keep in mind that they are calculated based on the user's local time zone settings in their browser or user profile. This can occasionally lead to confusion if team members are spread across different time zones.
Not read yet
Integrating Related Data (Lookup Fields)
A view is rarely useful if it only displays data from the primary table. Dataverse excels at relational data, and your views should reflect that. For instance, if you are building a "Projects" view, you likely want to see the "Account Name" of the client, even though that information lives in the "Accounts" table.
To add a related field:
- In the view editor, click "Add view column."
- Instead of selecting the current table, click the "Related" tab.
- Select the lookup field (e.g., "Client").
- Expand the list of fields available on the related table and select the specific field you need (e.g., "Account Name").
- The system will create a column that displays data from the related table directly in your grid.
This approach is much better than creating duplicate fields on your primary table just to see them in a view. Always favor relational lookups to maintain data integrity and reduce storage consumption.
Not read yet
Best Practices for View Design
Creating a functional view is only half the battle. Creating an efficient one requires adherence to industry standards that prioritize performance and user experience.
Limit the Number of Columns
A common mistake is adding too many columns to a view. While it might seem helpful to have every piece of information available, this creates horizontal scrolling that frustrates users. Aim for 5-8 columns that provide enough context to identify the record, then encourage users to click into the record for the full details.
Meaningful Naming Conventions
If you have 20 views on a table, users will get overwhelmed. Use a naming convention that categorizes the views. For example:
[My] Active Tasks[All] High Priority Tickets[System] Archived RecordsBy prefixing with the scope or purpose, you make it easier for users to scan the view dropdown menu.
Performance Considerations
Every column you add—especially those from related tables—adds a small amount of overhead to the query execution time. If your table contains hundreds of thousands of records, an overly complex view can become slow. Avoid sorting by calculated fields or non-indexed columns if possible, as these operations can significantly degrade performance.
Tip: If you find that a view is running slowly, check the "Filter" criteria. Ensure that you are filtering on indexed fields (like Status, Created On, or Owner). Filtering on long text fields or unindexed custom fields is the primary cause of slow-loading views.
Not read yet
Comparison: System Views vs. Personal Views
It is important to understand the distinction between the two types of views available in model-driven apps.
| Feature | System Views | Personal Views |
|---|---|---|
| Visibility | Available to all users | Only available to the creator |
| Creation | Created by Makers/Admins | Created by end-users |
| Modification | Managed via Maker Portal | Managed via App Grid |
| Maintenance | Persistent and global | Deleted if user leaves |
| Purpose | Standardized business processes | Ad-hoc data analysis |
Users should be encouraged to create their own personal views for their unique needs, but administrators should provide a set of high-quality system views that cover the 80% of common use cases.
Common Pitfalls and How to Avoid Them
Pitfall 1: Over-Filtering
Sometimes, developers apply too many filters, and the view returns zero records. This leads to user confusion ("Is the app broken?"). Always ensure your default view is broad enough to show at least some data, or provide clear messaging if the view is empty.
Pitfall 2: Neglecting the "Quick Find" View
The "Quick Find" view is the view used by the search box at the top of the app. Many developers forget to configure this. If you don't add columns to the "Quick Find" view, the global search will not be able to find records based on those fields. Always add relevant fields to the Quick Find view to ensure your app remains searchable.
Pitfall 3: Ignoring the "Column Width"
By default, Power Apps will auto-size columns. However, if you have a field with a very long label or very short data, the auto-sizing might look awkward. In the view editor, you can manually set the width of columns to ensure the grid looks polished and professional.
Not read yet
Coding and Customization: Beyond the UI
While most view configuration is done via the point-and-click interface, there are advanced scenarios where you might need to manipulate views via FetchXML. FetchXML is the query language used by Dataverse to retrieve data.
If you are a developer, you can export a view’s FetchXML to perform complex logic that the standard filter builder cannot handle. For example, if you need to perform a complex join across multiple tables that isn't supported by the standard lookup editor, you can modify the FetchXML directly.
Example: FetchXML Structure
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="account">
<attribute name="name" />
<attribute name="primarycontactid" />
<attribute name="telephone1" />
<order attribute="name" descending="false" />
<filter type="and">
<condition attribute="statecode" operator="eq" value="0" />
<condition attribute="createdon" operator="last-x-months" value="6" />
</filter>
</entity>
</fetch>
In this snippet, we are querying the "account" table. We define the attributes (columns) we want to retrieve, set the sorting order, and apply a filter that looks for active accounts created in the last six months. While you typically generate this via the UI, understanding this XML structure allows you to troubleshoot complex performance issues or replicate views across environments more effectively.
Callout: The Power of FetchXML FetchXML is the underlying engine for all views in Dataverse. While you rarely need to write it from scratch, being able to read and interpret it is the difference between a functional user and a power-user developer. When a view isn't behaving as expected, the "Download FetchXML" button in the view editor is your best friend for debugging.
Not read yet
Best Practices for Enterprise Environments
In a large organization, maintaining order in your views is essential. Here are a few strategies to keep your app manageable:
- Standardize Naming: Implement a naming convention across your entire tenant. For example, use "[Dept] - [View Name]" to help users understand who the view is intended for.
- Regular Audits: Once a quarter, review the usage of views. If a view hasn't been accessed by anyone in months, consider deprecating it. A cluttered app interface reduces productivity.
- Security Considerations: Remember that views do not enforce security. If a user does not have permission to see a record, the view will simply hide it from them automatically (Security Trimming). You don't need to build separate views for different security roles unless you specifically want to change the user experience.
- Use Subgrids: When you place a view on a form (as a subgrid), be sure to create a "Subgrid View" specifically for that purpose. A subgrid view should have fewer columns than a main grid view because there is less horizontal space available on a form.
Not read yet
Troubleshooting Common Issues
"My changes aren't showing up"
This is almost always a publishing issue. In the Power Apps maker portal, you must click "Publish" after saving your view changes. Additionally, if you are testing in a browser, the app might be using a cached version of the view. Try a hard refresh (Ctrl+F5) or open the app in an InPrivate/Incognito window to verify your changes.
"The column is missing in the view"
If you added a column but it doesn't appear, ensure that you have published the table changes. Also, check if the field has been hidden at the form level or if there is a security role blocking access to that specific field.
"The sort order isn't working"
If you have multiple sort levels, ensure they don't conflict. If you sort by "Name" (A-Z) and then by "Created On" (Newest), the system will sort by name first, and then within each name, it will sort by date. If your data doesn't seem sorted, check for hidden sort orders in the system view properties.
Not read yet
Comprehensive Key Takeaways
As we conclude this lesson on building and modifying views in Power Apps, keep these core principles in mind:
- Views are foundational: They are the primary way users interact with data. A bad view design directly correlates to a bad user experience.
- Keep it simple: Avoid the temptation to cram too many columns into a single view. Focus on the data that matters for the specific task at hand.
- Use related data wisely: Leverage lookups to pull in relevant information from related tables, but be mindful of performance when querying across multiple tables.
- Prioritize performance: Use indexed fields for filtering and sorting to ensure your views load quickly, even as your database grows over time.
- Standardize and clean up: Use consistent naming conventions and regularly audit your views to remove those that are no longer in use.
- Understand the difference: Distinguish clearly between system views (for the organization) and personal views (for the individual user) to empower your team.
- Leverage FetchXML for advanced scenarios: When the UI hits a limitation, look to the underlying FetchXML to understand and manipulate the data retrieval logic.
By applying these practices, you will move beyond simply "making it work" and start building truly efficient, user-friendly model-driven applications that solve real business problems. Views are the lens through which your users see their data; make sure that lens is clear, focused, and purposeful.
Not read yet
Frequently Asked Questions (FAQ)
Q: Can I change the default view for a table? A: Yes. In the model-driven app designer, you can select the table, navigate to its views, and set the "Default" property on the specific view you want to appear when users first open the list.
Q: Why can't I see the "Publish" button? A: If you are working within a Solution, you may need to navigate to the "Objects" tab of the solution and click "Publish all customizations" at the top level.
Q: Is there a limit to how many views I can create? A: While there is no hard technical limit, having hundreds of views will impact the usability of your app. Stick to a reasonable number and rely on personal views for edge cases.
Q: Can I use JavaScript to modify a view dynamically?
A: Yes, you can use the addCustomFilter method via the Client API to filter a subgrid view dynamically based on user interaction on a form. This is an advanced technique for highly interactive applications.
Q: How do I share a personal view with a colleague? A: Users can go to their list of personal views, select the view, and use the "Share" button to grant access to other users or teams within the organization.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
- Introduction to Microsoft Power Platform
- Introduction to Microsoft Power Platform Quiz5q
- Value of Power Apps for Building Applications
- Value of Power Apps for Building Applications Quiz5q
- Value of Power Automate for Process Automation
- Value of Power Automate for Process Automation Quiz5q
- Value of Power Pages for Building Websites
- Value of Power Pages for Building Websites Quiz5q
- Value of Connectors for Integration
- Value of Connectors for Integration Quiz5q
- Value of Microsoft Dataverse for Business Data
- Value of Microsoft Dataverse for Business Data Quiz5q
- Dataverse vs Traditional Databases
- Dataverse vs Traditional Databases Quiz5q
- Tables Columns and Relationships in Dataverse
- Tables Columns and Relationships in Dataverse Quiz5q
- Business Logic Options in Dataverse
- Business Logic Options in Dataverse Quiz5q
- Creating Tables and Columns Through Conversations
- Creating Tables and Columns Through Conversations Quiz5q
- Importing and Exporting Data Options
- Importing and Exporting Data Options Quiz5q
- Dataverse Business Rules
- Dataverse Business Rules Quiz5q
- Dataverse Calculated and Rollup Columns
- Dataverse Calculated and Rollup Columns Quiz5q
- Dataverse Security Roles
- Dataverse Security Roles Quiz5q
- Dataverse Teams Integration
- Dataverse Teams Integration Quiz5q
- Dataverse File and Image Columns
- Dataverse File and Image Columns Quiz5q
- Connecting to Data Sources with Connectors
- Connecting to Data Sources with Connectors Quiz5q
- Common Controls in Canvas Apps
- Common Controls in Canvas Apps Quiz5q
- Building Responsive Pages with Containers
- Building Responsive Pages with Containers Quiz5q
- Capabilities of Copilot Controls
- Capabilities of Copilot Controls Quiz5q
- Sharing a Canvas App
- Sharing a Canvas App Quiz5q
- Cloud Flows and Desktop Flows
- Cloud Flows and Desktop Flows Quiz5q
- Cloud Flow Templates
- Cloud Flow Templates Quiz5q
- Connector Triggers and Actions
- Connector Triggers and Actions Quiz5q
- Power Automate Use Cases
- Power Automate Use Cases Quiz5q
- Power Automate Apps and Portals
- Power Automate Apps and Portals Quiz5q
- Desktop Flow Actions
- Desktop Flow Actions Quiz5q
- Process Mining Overview
- Process Mining Overview Quiz5q
- Loops and Branching in Cloud Flows
- Loops and Branching in Cloud Flows Quiz5q
- Creating Cloud Flows with Triggers
- Creating Cloud Flows with Triggers Quiz5q
- Creating Flows Through Conversations
- Creating Flows Through Conversations Quiz5q
- Running and Monitoring Cloud Flows
- Running and Monitoring Cloud Flows Quiz5q
- Testing a Cloud Flow
- Testing a Cloud Flow Quiz5q
- Sharing a Cloud Flow
- Sharing a Cloud Flow Quiz5q
- Creating Sites Using Copilot
- Creating Sites Using Copilot Quiz5q
- Design Studio Workspaces
- Design Studio Workspaces Quiz5q
- Creating and Modifying Pages
- Creating and Modifying Pages Quiz5q
- Configuring Power Pages Components
- Configuring Power Pages Components Quiz5q
- Modifying a Power Pages Theme
- Modifying a Power Pages Theme Quiz5q
- Power Pages Authentication Options
- Power Pages Authentication Options Quiz5q
- Power Pages Web Roles
- Power Pages Web Roles Quiz5q
- Power Pages Table Permissions
- Power Pages Table Permissions Quiz5q
- Power Pages List and Form Components
- Power Pages List and Form Components Quiz5q
- Power Pages Publishing and Deployment
- Power Pages Publishing and Deployment Quiz5q
Spend your points to unlock exam-style practice questions
Spend points to unlock PL-900 exam-style practice questions.
Practice for PL-900