If I have a lot of data that I am going to filter with a power query against some criteria, and am wondering which is the most efficient method for Excel to work:, when some of the criteria refer to variables / parameters.
For example if one criterion is that a date is after a certain date, referenced LowerDate I could:
a) create a power query parameter LowerDateParameterValue from the LowerDate value cell, and then filter the data against those parameters, using something like:
b) add a helper column [Date is on after LowerDate] to my source data with something like:
and then in my query could filter with something like:
Which is more efficient for excel to calculate?
For example if one criterion is that a date is after a certain date, referenced LowerDate I could:
a) create a power query parameter LowerDateParameterValue from the LowerDate value cell, and then filter the data against those parameters, using something like:
Power Query:
#"Filtered Rows" = Table.SelectRows(Source, each ([Date] >= LowerDateParameterValue )),
b) add a helper column [Date is on after LowerDate] to my source data with something like:
Excel Formula:
=[@Date]>=LowerDate
Power Query:
#"Filtered Rows" = Table.SelectRows(Source, each ([Date is on after LowerDate] = True)),
Which is more efficient for excel to calculate?