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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SBDEV
Regular Visitor

Custom column for report using Power BI Dataset

I'm trying to create a report in Power BI Desktop using a Power BI Dataset sitting in a workspace.  I want to customise some values for a report showing animal data.  Specifically, for the column "Current Animal Type", I want to change the values "Cat" and "Kitten" to "Feline". 

 

AnimalTypeCustomColumn.PNG

 


Normally, I would add a custom column and use the following DAX to acheive this:

 

New Animal Type = IF('Animal'[Current Animal Type] IN {"Cat", "Kitten"}, "Feline", 'Animal'[Current Animal Type])

 

 

However, the ability to add a custom column to my report is disabled when using a Power BI Dataset.  Is there another way to achieve this?

 

Please note, I do not have the ability to change the dataset and I only want to do this for one report.  Any help you can give will be much appreciated.

1 ACCEPTED SOLUTION
AllisonKennedy
Super User
Super User

@SBDEV  You can only do measures (not columns) in live query mode (which is how you connect to Power BI Datasets). 

 

You could try a new MEASURE:

 

 

New Animal Type = IF(SELECTEDVALUE'Animal'[Current Animal Type]) IN {"Cat", "Kitten"}, "Feline", SELECTEDVALUE('Animal'[Current Animal Type]))

 


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

3 REPLIES 3
AllisonKennedy
Super User
Super User

@SBDEV  You can only do measures (not columns) in live query mode (which is how you connect to Power BI Datasets). 

 

You could try a new MEASURE:

 

 

New Animal Type = IF(SELECTEDVALUE'Animal'[Current Animal Type]) IN {"Cat", "Kitten"}, "Feline", SELECTEDVALUE('Animal'[Current Animal Type]))

 


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

Awesome!!  Thank you, @AllisonKennedy.  That worked!

You're welcome. Glad to help. 🙂 


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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.