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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

DAX TREATAS and BLANK()

Hi,

 

I'm in the process of debugging why a matrix visual is giving me some odd looking results. Whilst examining the queries Power BI Desktop is issuing against my data model, I've come across what seems to me to be odd behaviour for TREATAS().

 

EVALUATE TREATAS({BLANK()}, 'SomeTable'[SomeColumn])

 

This always returns a result of SomeColumn with a blank value regardless of whether SomeColumn contains blank values or not.

 

Is this expected behaviour. If so, why and what is going on?

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @Anonymous 

 

Power BI automatically adds a "hidden" blank row to any table on the 1-side of a relationship when the relationship is invalid (i.e. has values on the other side of the relationship that don't match the 1-side). This blank row is not visible in the Data view, but certain functions will treat this blank row as a row of the table (see this article on SQLBI). 

 

The DAX query you posted should only return a row if 'SomeTable' is on the 1-side of an invalid relationship. Otherwise it should return an empty table. I did some tests myself to confirm this.

 

Does that explain what's going on in your case?

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

Hi @Anonymous 

 

Power BI automatically adds a "hidden" blank row to any table on the 1-side of a relationship when the relationship is invalid (i.e. has values on the other side of the relationship that don't match the 1-side). This blank row is not visible in the Data view, but certain functions will treat this blank row as a row of the table (see this article on SQLBI). 

 

The DAX query you posted should only return a row if 'SomeTable' is on the 1-side of an invalid relationship. Otherwise it should return an empty table. I did some tests myself to confirm this.

 

Does that explain what's going on in your case?

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn
Anonymous
Not applicable

Thanks Owen, that was it.

 

When there's no missing values in the relationship, TREATAS({BLANK()}, ...) returns no rows.

 

 

 

Much appreciated.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.