Forum Discussion

XLBob's avatar
XLBob
Resolver II
8 years ago
Solved

bug in Power BI Desktop (Filtering not working as expected)

Filteringrelationshiplookupfact

simple sample data here, 1 fact and 1 lookup. standard relationship between lookup and fact. as you can see in very top JPG, when I select 0 from lookup, only 1 row which has traffic value 0 should have been returned. However, 2 rows have been returned. Selecting any other value will give me expected result. I assume this is a bug for the March release of Power BI desktop as I don't understand at all why it's doing this. 

  • Hi XLBob,

    There seems to be an issue if there are nulls in Numeric field used for joining two tables. If you convert the Traffic & Gov Traffic PA fields to "Text" then the issue is not replicating.

     

    Thanks,

    Rahul

     

     

     

     

6 Replies

    • XLBob's avatar
      XLBob
      Resolver II

      Seems like it's seeing 0 the same as NULL (blanks)

      • MattAllington's avatar
        MattAllington
        Community Champion

        You cannot have a blank as a foreign key in a data table.

         

        edit:  well clearly you can, but you shouldn't

  • Hi XLBob,

    There seems to be an issue if there are nulls in Numeric field used for joining two tables. If you convert the Traffic & Gov Traffic PA fields to "Text" then the issue is not replicating.

     

    Thanks,

    Rahul

     

     

     

     

    • XLBob's avatar
      XLBob
      Resolver II

      RahulYadav,Thanks for your brilliant idea. I will give this a try next Monday. I need the Traffic value to be INT type as it's used in numeric calculation. Anyway, x1 will convert any number as text back to numbers so it doesn't concern me too much. But I still hope that MS can fix this.