PowerApps使用Filter函数筛选子文件夹仅返回部分结果问题求助
Hey there, let's figure out why your Filter formula isn't returning those blue-filled folders! Here are some practical checks and fixes to try:
Check for path mismatches
Those blue-marked folders might have subtle differences in their path that break the exact match:- Case sensitivity: Is the actual path using lowercase letters (e.g.,
folder 2instead ofFolder 2)? - Hidden characters: Are there extra spaces, special symbols, or inconsistent trailing slashes in the folder's path?
- Instead of exact equality, use a partial match to cover all subfolders under your target path:
This will capture every item whose path starts with your target folder, regardless of deeper subfolders.Filter(DOCS, STARTS_WITH('Folder Path', "DOCS/Folder 1/Folder 2/"))
- Case sensitivity: Is the actual path using lowercase letters (e.g.,
Investigate the blue marker's metadata
The blue fill might be tied to a specific attribute in yourDOCSdataset (like a "marked" flag, hidden status, or archive tag). Double-check the properties of those missing folders in your data source—could there be an unspoken filter (like a hidden column) that's excluding them from results?Refresh your data source
If you're pulling data from an external tool (like cloud storage or a document management system), indexing delays might mean the blue-marked folders haven't synced to yourDOCSdataset yet. Try refreshing the data connection or re-syncing the folder structure, then run the formula again.Verify exact match limitations
Your original formula only returns items where theFolder Pathis exactlyDOCS/Folder 1/Folder 2/. If the blue folders are subfolders of this path (e.g.,DOCS/Folder 1/Folder 2/Blue Folder), the exact match won't catch them. Switching toSTARTS_WITHorCONTAINSwill fix this gap.
内容的提问来源于stack exchange,提问作者Momoe

