This article describes, how to use Power Query to connect two tables using range or date interval (like VLOOKUP works if the last argument is TRUE).

For example here. In the left table, there are amounts of orders. The higher amount, the bigger discount - the list of discounts is in the middle table.

The result is in the right table - containing total amounts and relevant discounts.

For example if the amount is 3 820, it is enough to 1% discount. The procedure is, I have to say, quite complicated - but I don´t know anything better...

At first, we will merge these tables using the Full outer connection type. After expanding the tables, using the double-sided arrow, the tables are, more or less, side by side. Now let´s merge the amounts from both tables into one column - using (for example) the conditional column. Now use this column to sort the table. This mixes up the merged tables. Now use the column with percentages (values to assign) to fill it down. Now it is assigned. All that remains is to remove rows having null in "Total amount", sort and remove unnecessary column. That´s all.

This procedure will work the same way for dates and texts
{"ft_lang_label":"__label__en","ft_lang_prob":0.8176656,"math_prob":0.79650265,"size":1255,"snap":"2020-10-2020-16","text_gpt3_token_len":274,"char_repetition_ratio":0.1294964,"word_repetition_ratio":0.0,"special_character_ratio":0.22151394,"punctuation_ratio":0.11857708,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9698992,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"im_url_duplicate_count":[null,6,null,6,null,6,null,6,null,6,null,6,null,6,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-28T11:32:49Z\",\"WARC-Record-ID\":\"<urn:uuid:7d7de624-5859-4baf-b9f7-4f1015a15e37>\",\"Content-Length\":\"71467\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9919c3ad-fc64-4517-a5b3-b2c4320df266>\",\"WARC-Concurrent-To\":\"<urn:uuid:54b517d1-a57a-4634-8c70-6fb6448a94a8>\",\"WARC-IP-Address\":\"31.15.10.57\",\"WARC-Target-URI\":\"https://exceltown.com/en/tutorials/power-bi/powerbi-com-and-power-bi-desktop/power-bi-data-sources/16681-2/\",\"WARC-Payload-Digest\":\"sha1:3ZSLP4NEQE3KKJFJP2I4D5PZGHGXODK4\",\"WARC-Block-Digest\":\"sha1:JA24XBVOHTXWTOOAB32IYDQWAIL7FVFP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875147154.70_warc_CC-MAIN-20200228104413-20200228134413-00295.warc.gz\"}"}