Forum Discussion

ChrisFromOhio's avatar
2 years ago
Solved

Filter SSAS Dax Query based on List of Values

Hello - like the title says, I have a SSAS Dax Query (Import) that I am trying to add a condition based on another list of values. These values are currently stored in an excel file. Right now, I'm i...
  • HarshSathwara19's avatar
    HarshSathwara19
    1 year ago

    Apply List directly in your query, This works for me

     

    let
        Source = YourOtherDataSource,
        FilteredRows = Table.SelectRows(Source, each List.Contains(MyList, [YourColumn]))
    in
        FilteredRows

     

    Best Regards,
    HSathwara


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.