• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Flag First Instance of a value in one column as it relates to the running dates in another column.|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Flag First Instance of a value in one column as it relates to the running dates in another column.|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryFlag First Instance of a value in o…
sp_PrintTopic sp_TopicIcon
Flag First Instance of a value in one column as it relates to the running dates in another column.
Avatar
L D

New Member
Members
Level 0
Forum Posts: 1
Member Since:
October 23, 2019
sp_UserOfflineSmall Offline
1
October 23, 2019 - 12:27 am
sp_Permalink sp_Print

All, I am able to achieve this in Excel but having difficulty with the coding in my power query. What I am want to do is flag the first instance of an ID number's "Priorty" status by the date is was first marked "Priority".  Can anyone assist? Much appreciated!

ID Number Status Report Date Flag First Instance
1117474752719690-00   10/10/2019  
1117474752719690-00   10/11/2019  
1117474752719690-00   10/14/2019  
1117474752719690-00 Priority 10/15/2019 X
1117474752719690-00 Priority 10/17/2019  
1117474752719690-00 Priority 10/18/2019  
1117474752719690-00 Priority 10/21/2019  
1117474752719690-00 Priority 10/22/2019  
1117483188738324-01 Priority 10/10/2019 X
1117483188738324-01 Priority 10/11/2019  
1117483188738324-01 Priority 10/14/2019  
1117483188738324-01 Priority 10/15/2019  
1117483188738324-01 Priority 10/17/2019  
1117486867485829-11 Priority 10/10/2019 X
1117486867485829-11 Priority 10/11/2019  
1117486867485829-11 Priority 10/14/2019  
1117488038738324-01   10/10/2019  
1117488038738324-01   10/11/2019  
1117488038738324-01   10/14/2019  
1117488038738324-01 Priority 10/15/2019 X
1117488038738324-01 Priority 10/17/2019  
1117491697442259-09   10/10/2019  
1117491697442259-09 Priority 10/11/2019 X
1117491697442259-09 Priority 10/14/2019  
1117491697442259-09 Priority 10/15/2019  
1117491697442259-09 Priority 10/17/2019  
1117492187389862-06   10/10/2019  
1117492187389862-06   10/11/2019  
1117492187389862-06   10/14/2019  
1117492187389862-06   10/15/2019  
1117492187389862-06 Priority 10/17/2019 X
1117492187389862-06 Priority 10/18/2019  
1117492187389862-06 Priority 10/21/2019  
1117492187389862-06 Priority 10/22/2019  
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
October 23, 2019 - 9:28 am
sp_Permalink sp_Print

Hi LD,

Welcome to our forum!

You can use the 'Number Grouped Data Power Query' technique to find the first instance of each ID tagged with Priority. In the attached file I created a query to extract the ID Numbers with a Status of Priority, numbered them, filtered to keep only the first entries, then merged the queries to bring in the X flag. See file attached.

Mynda

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Malcolm Seymour, Nikole Roland, Dieneba NDIAYE, Wesley Burchnall, jack hack, Emma Klonowski
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 204
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Brett Dryland
Saeed Aldousari
Bhuwan Devkota
Kathryn Patton
Maria Conatser
Jefferson Granemann
Glen Coulthard
Nikki Fox
Rachele Dickie
Raj Mattoo
Forum Stats:
Groups: 3
Forums: 24
Topics: 6222
Posts: 27291

 

Member Stats:
Guest Posters: 49
Members: 31912
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.