Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Power Query Filter doesnt works

Hello, I have a strange Problem  and I Hope anyone can help:

I imported some data from a odata source (sap data via theobald). In PowerQuery I've added a filter on a column. The filter was applied and shown in the M Code. But the Filter does not have any affected on the preview data and does not any changes in the data model ( dax). The filter does not work! The filter is very easy, I've only selected some elements in a list. 

On the next step I've created a calculated column and checked via M if the value does meet the filter requirements and put into the column a 1, if not, a 0. Next I filter the column to the value 1 and it works. 

 

I think powerbi does push the filter against the odata source and this step doesn't works?

8 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Yes, I do it like this - here some Screens from Demo Data - in this example everything works fine:

       

       

       

      In my productive envoirement the M Filter does not work. And I don't know why?

       

       

      • v-huizhn-msft's avatar
        v-huizhn-msft
        Microsoft Employee

        Hi Anonymous,

        After add filter in Power Query, have you click the "Apply" button?



        And I personally suggest you get data from other resouce(Eg,Excel) and add filter in same step, and check if it works fine.

        Best Regards,
        Angelia