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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

How to fix pbix forcing to "First value" of a column when using matrix?

I have a Clients table, with columns:

 

-Name

-Number

-Parent

-Parent Number

-Owner

 

 

 

Whenever a client has same Parent as itself…:

********

-Name: Client 1

-Number: 12345

-Parent: Client 1

-Parent Number: 12345

-Owner: xyz

********

It means that it has no parent.

 

 

 

My problem comes when using a Matrix in Power BI…

 

In Rows I have

  • Parent
  • Name

 

When I choose Owner… automatically, it creates this “First Owner” and picks a “wrong” value…

ovonel_0-1626864141479.png

 

 

I understand that since its grouping by, it just picks the first value… but the row does have a value, how can I force to select the owner?

 

 

(I guess the model is not ideal, but I would like to fix it with a measure or a calculated column).

1 ACCEPTED SOLUTION
Anonymous
Not applicable

If something has no parent, then it should not have a parent. Period. That means you should massage your data in Power Query and remove the reference to itself and replace it with either BLANKS or---much better---create a dummy parent and have all those items that do not have a parent reference this dummy member of the dimension. This is how you do it professionally following the best practices of dimensional design.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

If something has no parent, then it should not have a parent. Period. That means you should massage your data in Power Query and remove the reference to itself and replace it with either BLANKS or---much better---create a dummy parent and have all those items that do not have a parent reference this dummy member of the dimension. This is how you do it professionally following the best practices of dimensional design.

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.