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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
vpatel55
Kudo Commander
Kudo Commander

Bulk renaming of measures

I need to rename around 150 measures in a PBIX file in a "find and replace" kind of way. Is there an easy way to do this? I'm happy to use any external tools. I've had a casual look in Tabular Editor and Dax Studio, and cannot seem to find anything. Thanks very much.

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@vpatel55 in Tabular Editor 3 you have an option to 'Script Dax' for all your measures and then you could do that find and replace and apply the change. 
I guess you can also do that in Tabular Editor 2 but you don't have a UI for that so you will need to write it in a c#. Anyway do it in Tabular Editor 3 (It costs money but you have a 1 month trial for free)


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

View solution in original post

6 REPLIES 6
vpatel55
Kudo Commander
Kudo Commander

Thanks @SpartaBI - brilliant 🙂

@my pleasure 🙂
Check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas. 
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up over there if you liked it 🙂

SpartaBI
Community Champion
Community Champion

@vpatel55 in Tabular Editor 3 you have an option to 'Script Dax' for all your measures and then you could do that find and replace and apply the change. 
I guess you can also do that in Tabular Editor 2 but you don't have a UI for that so you will need to write it in a c#. Anyway do it in Tabular Editor 3 (It costs money but you have a 1 month trial for free)


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

Many thanks for your prompt response @SpartaBI - that is great to know. Are there any other ways of doing it that does not require C#? I'm afraid I know no C#

 

Thanks.

@vpatel55 yes yes 🙂 maybe I was not clear. In tabular editor 3 you can do it just by clicking on script dax button, it will create a long script of all your measures and you could do the find and replace action (like you are familiar with), no code needed.


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

The C# code is actually rather simple:
Selected.Measures.Rename("OldText","NewText")

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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