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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
KitchenBy
Frequent Visitor

Index for matching columns Power BI

Hello, i have a  following formula in Power Bi:

let
Source = [Niestandardowe.2],
Custom1 =
Table.RenameColumns(
Source,
List.Zip(
{
Table.ColumnNames(Source),
List.Transform(
List.ReplaceValue(
List.FindText(
Table.ColumnNames(Source),
""),
"Cluster",
"TC",
Replacer.ReplaceText),
each if Text.Contains(_,"End")
then Text.Replace("_", "_","TC " ???????? )
else _ )
} ))
in
Custom1

 

I want to rename all columns which contain "End", rename to End1, End2, End3....

What i may to write instead "???????" i my code?

 

 

Thanks.

1 ACCEPTED SOLUTION

You didn't quite understand me, look in my code, and you understand what i want to do.

View solution in original post

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello @KitchenBy ,

 

You could double click on the column name and change it.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




You didn't quite understand me, look in my code, and you understand what i want to do.

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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