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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Rename values in a measure and use it as a row in matrix

Hello, 

I work on Power BI with Direct DB Connexion.

 

I wanted to just rename values contaned in a column, and display it in a matrix as a row. For a translation for example.

SPA = If selectedvalue(ENG)= "Flower", "Flores

 

In a table, it works:

ENG | SPA | Number

Flowers | Flores | 18

 

But it does not allow me to use SPA as a row in a matrix. Can I get it to work somehow?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

This is due to the fact that by design, metrics need to act on the context, so placement on the rows of the matrix is not supported.

You can create a column to be placed on the rows of the matrix.

vtangjiemsft_0-1697597884743.png

 

vtangjiemsft_1-1697597967028.png

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

This is due to the fact that by design, metrics need to act on the context, so placement on the rows of the matrix is not supported.

You can create a column to be placed on the rows of the matrix.

vtangjiemsft_0-1697597884743.png

 

vtangjiemsft_1-1697597967028.png

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

 

Anonymous
Not applicable

Yes I think it's not supported in Matrix. I cannot add a column because it's a direct connection. I asked people in the datasource side to add the column I need in the Database.

Thanks

vicky_
Super User
Super User

You'll need to provide more details - is there any error messages appearing when you try to use that measure? It seems to me that your code should work fine.

Anonymous
Not applicable

I have no errors: when I drag & drop, it does nothing. When I use it in a table, and change the table to matrix, the indicator moves auto to values. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.