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

Create duplicate Rows referring above row and change the values in duplicated row

Hello Expert,

 

I'm newbie to power query and PBI as trying to find solution for my requirement and afraid as i couldn't find it.

Here is input

 

 

Input.JPG

 

 

 

 

 

 

 

Firstly, it should create duplicate row referring the upper row and Duplicate row should calcuclate by adding D+G columns of Input.

Ex for 1 - in column D as 16 and G as 8 = 24 should appear in new dulicate line item.

 

Appreciate your valuable inputs in this regard.

 

Regards,

Arjun

1 ACCEPTED SOLUTION

@Anonymous

 

Please see attached file as well

 

createdupl.png


Regards
Zubair

Please try my custom visuals

View solution in original post

3 REPLIES 3
Zubair_Muhammad
Community Champion
Community Champion

HI Arjun @Anonymous

 

You can also do it via DAX calculated TABLE

 

Go to Modelling Tab>> NEW TABLE

 

Table =
VAR temp =
    SELECTCOLUMNS (
        table1,
        "A", [A],
        "B", [B],
        "C", [C],
        "D", [D],
        "E", [E],
        "F", [D] + [G],
        "G", [F] + [I],
        "I", [I]
    )
RETURN
    UNION ( Table1, temp )

Regards
Zubair

Please try my custom visuals

@Anonymous

 

Please see attached file as well

 

createdupl.png


Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

Thank you @Zubair_Muhammad

 

How can I use this function by importing the file from other workbook, which calaculation do i need to select?

 

Regards,

Arjun

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.