Forum Discussion

Gaz_Chapp's avatar
Gaz_Chapp
Frequent Visitor
4 years ago
Solved

Measure to filter only required column values

Hi all, new to this and it's driving me crazy.....   I have a table column that contains many unique terminal ID numbers. I want to create a measure that shows (filters) only the specific ID's I ne...
  • VahidDM's avatar
    VahidDM
    4 years ago

    Hi Gaz_Chapp 

     

    Try this measure to create a new table by DAX code:

    Filtered Table = filter('Table','Table'[TransAtmEftposId] in {"9V12345D","9V54321D"})

    Original Table :

     

    Filtered Table:

     

    In Power Query add click on "Insert Step After" and use this code [add new codes with OR at the end]:

    = Table.SelectRows(#"Changed Type", each ([TransAtmEftposId] = "9V12345D" or [TransAtmEftposId] = "9V54321D"))

     

     

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

    Appreciate your Kudos✌️!!