Forum Discussion

vgeldbr's avatar
vgeldbr
Helper IV
6 years ago
Solved

Using a variable as an operator in a Power BI query filter

This may not be very elegant but would appreciate some help to find a solution.   I have set up a Parameter (SubPortfolio Filter) to filter a query based on the values in a column. I have another P...
  • Anonymous's avatar
    Anonymous
    6 years ago
    Hi vgeldbr

    This should work
    Table.SelectRows(dbo_VW_PPM_ExportFinancial_FY20, each List.Contains(PortfolioFilterList, [Portfolio]) and fComparerList(SubPortfolioFilterList, [SubPortfolio], if SubPortfolioFilterType then "=" else "<>"))

    Kind regards
    JB