Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
XLBob
Resolver II
Resolver II

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

FilteringFilteringrelationshiprelationshiplookuplookupfactfact

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. 

1 ACCEPTED SOLUTION
RahulYadav
Resolver II
Resolver II

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.2018-03-16_12-17-28.jpg

 

Thanks,

Rahul

 

 

 

 

View solution in original post

6 REPLIES 6
RahulYadav
Resolver II
Resolver II

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.2018-03-16_12-17-28.jpg

 

Thanks,

Rahul

 

 

 

 

@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. 

XLBob
Resolver II
Resolver II

@MattAllington Matt, have you come accross this?

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

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

 

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



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

@MattAllington Thanks for your reply. I am not convinced by the fact that having blank as a foreign key in a data table is the reason why it's doing that. When I filter blank it's only giving me the balnk row in fact table.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.