Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

MAX/IF combination to pull date based on product number

$
0
0

In Excel, I am able to use the MAX/IF array function to look at Cell A2 (product number), look through all of column A for matching product numbers, and look at column B to find the max date for that serial number.  This would go in cell C2 and the function would repeat for each cell in C looking next at A3, A4, A5, etc. to pull the max date.  Quick example - The max DATE for each PRODUCT is in RED:

 

 

 

PRODUCTDATEMAX DATE
ABC12/31/201612/31/2017
DEF1/1/201412/31/2017
ABC5/31/201512/31/2017
XYZ6/31/20158/1/2017
DEF7/21/201212/31/2017
XYZ4/1/20118/1/2017
DEF5/31/201612/31/2017
DEF12/31/201712/31/2017
ABC12/31/201712/31/2017
DEF1/1/201512/31/2017
XYZ8/1/20178/1/2017
ABC9/31/201612/31/2017
XYZ7/31/20148/1/2017
DEF1/1/201512/31/2017
DEF3/1/201112/31/2017

 

I have been hammering away trying to reproduce in power query/power BI and have not been successful.  I am new to the software and community (though I have been using power query through Excel for a year or so now) so excuse any ignorance in my post! Thanks in advance for any help!

 

**UPDATE** - I was able to recreate using a measure but I cannot figure out how to get the Max Date loaded into a new column from the measure.  

 

Tom


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>