Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Remove/Filter out rows based on values in 2 columns

I am working with sales pipeline data from Salesforce. The two columns I need to filter with are Stage and Opportunity Office. These columns contain the following: Stage: Target, Prospect, Proposal ...
  • DataInsights's avatar
    4 years ago

    Anonymous,

     

    Try this custom column in Power Query:

     

    if List.Contains({"Wealth Advisors", "Transaction Services"}, [Opportunity Office]) and List.Contains({"Closed Won", "Closed Lost"}, [Stage]) then 1 else 0