Suppose there are two ranges A2:A4 = A, B, C B2:B5 = 1, 2, 3, 4 Cartesian product should give the result A1, A2, A3, A4, B1, B2, B3, B4, C1, C2, C3, C4 In Excel the formula would be =DROP(REDUCE("",A2:A4, LAMBDA(a, b, VSTACK(a, b & B2:B5))),1) In Power Query, the formula would be =…
Author: Vijay A. Verma
Tips & Tricks 195 – Reverse Lookup in a Range
Sometimes, you have a dataset where you will need to perform lookup starting from last cell to first cell rather than usual first cell to last cell. With XLOOKUP function, the task has become easier as it gives a parameter to control this. While default is from first cell to last cell but if you…
Power Query – Bypass 3000 cells limit in Enter Data – Tips & Tricks 19
Question – I am trying to "Enter Data" in Power BI that is a large table. I am doing this to avoid a connection and avoid refreshing data. I can copy the data from a csv file but when I paste into Enter Data, I get an error with 3000 cell limit. Answer – 1. Import…
Power Query – Multi Column Exact Match XLOOKUP/VLOOKUP – Tips & Tricks 18
Learn to perform Multi column exact match in Power Query like XLOOKUP, VLOOKUP in Excel. The pbix file used in this can be downloaded from – https://1drv.ms/u/s!Akd5y6ruJhvhvxUlfh5W15hhMqT-?e=vg6eTL
Power Query – Exact Match XLOOKUP/VLOOKUP – Tips & Tricks 17
I wrote a tip earlier on this – VLOOKUP/XLOOKUP Formula – Power Query – Tips & Tricks 7 Here it the video. Learn to perform exact match in Power Query like XLOOKUP, VLOOKUP in Excel. The pbix file used in this can be downloaded from – https://1drv.ms/u/s!Akd5y6ruJhvhvwxUuHqOA1XAZ33u?e=8ZDAik
Tips & Tricks 194 – Highlight Max & Min in your Data Simplified
Create impression on your management. Highlight Maximum and Minimum in your data effortlessly. Excel file used in this video – https://1drv.ms/x/s!Akd5y6ruJhvhvUYGCzWbpu5BaP2J?e=D57teS Below are simpler formulas to do this Across Rows – B2=MAX($B2:$E2), B2=MIN($B2:$E2) Across Columns – B2=MAX(B$2:B$10), B2=MIN(B$2:B$10)
SQL Quiz 3
Power Query – Date.IsInQuarterToDate, Date.IsInMonthToDate and Date.IsInWeekToDate functions – Tips & Tricks 16
Power Query's M language provides a rich collection of Date functions. One of the functions offered by Power Query's M language is Date.IsInYearToDate function. This function will give True or False depending on whether date is within Year to Date range. Hence, if today's date is 28-Nov-22, then dates from 1-Jan-22 to 28-Nov-22 will be…
Tips & Tricks 193 – Add a Target Line to a Bar Chart
Last time, we saw how to add target line in a column chart (Link below for last post). This time, we will learn how to add target line to a bar chart. The file used in this video – https://1drv.ms/x/s!Akd5y6ruJhvhvUDtymUM7djBUsCQ?e=HIDZiy
Power Query – Make Text.ExcelTrim Function – Tips & Tricks 15
TRIM function of Excel and Text.Trim functions of Power Query both remove leading and trailing spaces (ASCII Char code 32) from a text. But Excel's TRIM goes a step further. If there are mulitiple spaces between words, it will reduce those to a single space between words. Hence if I have a string " Microsoft…