Forum Discussion

JPorterValmetal's avatar
JPorterValmetal
Frequent Visitor
4 months ago
Solved

Filter Old Draft Folders

Good day everyone. I am having quite a problem trying to figure out how to accomplish my goal using Power Query, if it's even possible.   I keep a running index of all of the projects that my team ...
  • V-yubandi-msft's avatar
    V-yubandi-msft
    4 months ago

    The grouping is currently set at the Draft folder level, which is why you’re seeing one file per Draft instead of one per PR folder.

     

    You should group at the PR-26*** level so all Draft folders are considered together. Then, use the maximum modified date within each group and filter to that row. This will give you only the most recent file across all Draft folders for each PR.

    If you still get multiple rows, sort within each group and keep just the top row to ensure a single result.

     

    Please try this approach and let us know how it works for you.