Forum Discussion
Cannot filter on "blank" rows.
I have a relationship between two tables... Table A is a list of Employees with their Employee ID and Table B is a list of Email accounts including their EmployeeID property. Sample Data looks something like this:
Table A
| First Name | Last Name | Employee ID |
| John | Doe | 1234 |
| Jane | Doe | 5678 |
| Billy | Madison | 8765 |
| Benny | Guzman | 4321 |
Table B
| Email Address | EmpID |
| [email protected] | 1234 |
| [email protected] | 5678 |
| [email protected] | 4321 |
| [email protected] | |
| [email protected] | |
| [email protected] | 9182 |
I have created a relationship between Table A and Table B that is a 1 to many relationship (note: Each EmployeeID in Table A has just 1 matching row in Table B, however Table B has rows that do not existing in Table A... including several rows where EmployeeID in Table B is blank)
Now I've combined these tables in a view and it looks something like this:
| First Name | Last Name | Employee ID | Email Address |
| John | Doe | 1234 | [email protected] |
| Jane | Doe | 5678 | [email protected] |
| Billy | Madison | 8765 | |
| Benny | Guzman | 4321 | [email protected] |
Which is great... but if I go to Filter this view on Email Address and tell it to just show where Email Address is blank... or is empty... it shows that there are no rows... however I remove the filter and I can clearly see rows where the email address is blank...
Any thoughts on where this could be getting mized up?
Hi bturney- We need to ensure that Power BI correctly identifies and filters rows with blank or empty email addresses
I have created a calculated table as below:
CombinedTable =ADDCOLUMNS('TableA',"Email Address", LOOKUPVALUE('TableB'[Email Address], 'TableB'[EmpID], 'TableA'[Employee ID]))added one new column as above snapshot if you see IsEmailBlank
IsEmailBlank = IF(OR(ISBLANK([Email Address]), [Email Address] = ""),"Blank","Not Blank")from report view, create a table chart, add the required fields into it. and apply visual level filteryou can see the blank record . Hope it helps. please check.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
1 Reply
- rajendraongole1
Super User
Hi bturney- We need to ensure that Power BI correctly identifies and filters rows with blank or empty email addresses
I have created a calculated table as below:
CombinedTable =ADDCOLUMNS('TableA',"Email Address", LOOKUPVALUE('TableB'[Email Address], 'TableB'[EmpID], 'TableA'[Employee ID]))added one new column as above snapshot if you see IsEmailBlank
IsEmailBlank = IF(OR(ISBLANK([Email Address]), [Email Address] = ""),"Blank","Not Blank")from report view, create a table chart, add the required fields into it. and apply visual level filteryou can see the blank record . Hope it helps. please check.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!