Find 1st, 2nd, 3rd, 4th, and 5th Largest Invoice Amounts

SMALL & LARGE

I used an if statement to produce the invoice amount if the vendor code matches the header of the table. This will create a spill of results because this can occur as little as 0 times or as many times.

Now, if I use the LARGE() function on the outside of the if statement, I can restrict it and produce the Nth largest invoice amount. This can be done likewise if I use the SMALL() function. See below.

Comments

Popular posts from this blog

Ranking of UC Schools from Top 110 Ranked National Universities of 2024

Remove Duplicates

Power BI