Forum Discussion
sandeeptikait
Jun 30, 2020Copper Contributor
Data Filtering by Column/ Horizontal
I have date in 1st column and names in 2nd, 3rd, 4th column and so on. How can I filter a data to get the count of each name in the specified date range. Enclosed excel file with data an...
Riny_van_Eekelen
Jun 30, 2020Platinum Contributor
sandeeptikait Offering a PowerQuery approach, using three Named Ranges (names, Start and End). Although I still consider myself a relative newbie at the subject, I'm rather pleased with the outcome :), but at the same time convinced that it probably can be done better.
Results are shown in the small table in N5:O11. Change the Start and/or End dates. Select the Data ribbon and press"Refresh All" for an updated result.
PeterBartholomew1
Jul 01, 2020Silver Contributor
Looks good to me. About the only point where I would differ is in that I would have converted the named range to a Table before starting with PQ. That both makes the input dynamic and saves the promote headers step in the M code.
- Riny_van_EekelenJul 01, 2020Platinum Contributor
PeterBartholomew1 Good point. Will keep that in mind!