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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
karelstoel
Advocate I
Advocate I

Rename rows

Hi,

 

I have append a few datasets in power query with in every dataset a 'Debiteuren' row. Is it possible to rename those rows/names to see the difference between them? See below.

 

Thanks in advance! Kind regards, Karel

 

karelstoel_0-1633419296859.png

 

3 ACCEPTED SOLUTIONS
Fowmy
Super User
Super User

@karelstoel 

Can you share some sample data with the expected results?


Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

Hi Fowmy,

 

See below what I am looking for. I Would like to rename the rows so I can see what data is what. Thanks!

 

karelstoel_0-1633423301092.png

 

View solution in original post

Hi @karelstoel ,

 

Maybe you could add an index column and then replace the value of that column.

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcklNyixJLS1KzVPSUTJQitVBEzIy0LM0NjU3wZQxNDDQMzM2MDHHlDI1t9AzMTQ1M8VinqWxBdBEY3NjLCYamVoY6plbGFsCNcYCAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Naam = _t, Debiteuren = _t]),
    #"Added Index" = Table.AddIndexColumn(Source, "Index", 1, 1, Int64.Type),
    #"Changed Type1" = Table.TransformColumnTypes(#"Added Index",{{"Index", type text}, {"Debiteuren", type number}}),
    Substitutions = [
        1 = "Company X",
        2 = "Company Y",
        3 = "Company Z",
        4 = "Company V",
        5 = "Company K",
        6 = "Company J"],
    Substituted = Table.TransformColumns(#"Changed Type1", {{"Index", each Record.FieldOrDefault(Substitutions, _, _)}})
in
    Substituted

vkkfmsft_0-1633596422905.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

3 REPLIES 3
Fowmy
Super User
Super User

@karelstoel 

Can you share some sample data with the expected results?


Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi Fowmy,

 

See below what I am looking for. I Would like to rename the rows so I can see what data is what. Thanks!

 

karelstoel_0-1633423301092.png

 

Hi @karelstoel ,

 

Maybe you could add an index column and then replace the value of that column.

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcklNyixJLS1KzVPSUTJQitVBEzIy0LM0NjU3wZQxNDDQMzM2MDHHlDI1t9AzMTQ1M8VinqWxBdBEY3NjLCYamVoY6plbGFsCNcYCAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Naam = _t, Debiteuren = _t]),
    #"Added Index" = Table.AddIndexColumn(Source, "Index", 1, 1, Int64.Type),
    #"Changed Type1" = Table.TransformColumnTypes(#"Added Index",{{"Index", type text}, {"Debiteuren", type number}}),
    Substitutions = [
        1 = "Company X",
        2 = "Company Y",
        3 = "Company Z",
        4 = "Company V",
        5 = "Company K",
        6 = "Company J"],
    Substituted = Table.TransformColumns(#"Changed Type1", {{"Index", each Record.FieldOrDefault(Substitutions, _, _)}})
in
    Substituted

vkkfmsft_0-1633596422905.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors