Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I would like to use DAX to compare [SiteID] of the same [AsOfDate] and [CustomerPartNo] and add the [LastUsedDate] to the opposite [SiteID]. After creating the two new columns and adding [LastUsedDate] to each, I’m at a lost on how to proceed. I hope someone would know the best way to do this. Below is sample output.
AsOfDate | SiteID | CustomerPartNo | LastUsedDate | MC LastDate Used | SC LastDate Used |
8/2/21 | SC | 00309SR37010 | 7/27/21 | 7/26/21 | 7/27/21 |
8/2/21 | MC | 00309SR37010 | 7/26/21 | 7/26/21 | 7/27/21 |
8/2/21 | SC | 95060XC30009 | 7/22/21 | 7/21/21 | 7/22/21 |
8/2/21 | MC | 95060XC30009 | 7/21/21 | 7/21/21 | 7/22/21 |
9/6/21 | SC | 95060XC30004 | BLANK | 8/16/21 | BLANK |
9/6/21 | MC | 95060XC30004 | 8/16/21 | 8/16/21 | BLANK |
Solved! Go to Solution.
@mecasteel please try this
@mecasteel Can you please attach your pbix here through 1drive/gdrive?
can't right now, traveling.
@mecasteel please try this
your PBIX works great, but when i apply it to the full table - I get error 'EARLIER/EARLIEST refers to an earlier row context which doesn't exist.'
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |