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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Aliasing Values

I'm new to PBI - I've been using it for a month now as the last 9 years I've used Tableau extensively.  Today I was painfully trying to figure out a way to alias values in a column.  It seemed everything pointed to a calculated column using DAX.  But then it occurred to me that I can use the PBI group function even though I'm not grouping anything.  I just used it for the aliasing feature.

 

Is this a known common trick for aliasing or maybe there is a more straight forward way to alias values without calcs?  Or maybe using the group function takes a slight hit on performance?

1 ACCEPTED SOLUTION

@Anonymous  In my experience you can always rename single values with Group By, the problem comes in when you need to use an 'other' group and rename the other group - it will always force some refernce at the end that it's other. 

 

Otherwise you can use Power Query to do this ,either in existing column or first Duplicate the column. It requires lots of 'replace values' steps or this trick: https://youtu.be/cOXNbaa_02U?t=59 Or a new Conditional Column would do the trick too. I know not quite self service intuitive, but Power BI has come a long way quickly. 

 

Definitely vote for your idea here so we can see the functionality in future releases: https://ideas.powerbi.com/ 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

8 REPLIES 8
ALC9816
Frequent Visitor

You can double click at the Pills in Rows and Values and change the name for the current Viz.  The effects are local, not global.  

See video below:
https://www.youtube.com/watch?v=_On_aX8DbJw&t=6s 

Anonymous
Not applicable
lbendlin
Super User
Super User

Please explain what you mean by aliasing.  In Power BI there are multiple ways to rename a column, either in Power Query, in the data model or just in the visual.

Anonymous
Not applicable

I'm not trying to rename the column.  I  know how to do that.  I'm trying to rename the values in the column.

I see.  Yeah, the group function is a bit iffy, especially with single group members. Sometimes you cannot rename the group to what you need, it will insist on being named like the single item.

 

Have you considered using a reference table?  You could add that to your data model and then just use the reference column instead of the original column.

Anonymous
Not applicable

I was able to use the group function this time for the single value members.  Hopefully I don't run into the issue you mentioned in the future  🤔.  I'm not a big fan of creating a lot of work for something trivial.  Tableau does this effortlessly.  PBI needs to improve on the simple things with the "self-service" business user in mind.

@Anonymous  In my experience you can always rename single values with Group By, the problem comes in when you need to use an 'other' group and rename the other group - it will always force some refernce at the end that it's other. 

 

Otherwise you can use Power Query to do this ,either in existing column or first Duplicate the column. It requires lots of 'replace values' steps or this trick: https://youtu.be/cOXNbaa_02U?t=59 Or a new Conditional Column would do the trick too. I know not quite self service intuitive, but Power BI has come a long way quickly. 

 

Definitely vote for your idea here so we can see the functionality in future releases: https://ideas.powerbi.com/ 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

Thanks for the info Allison!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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