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

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

Reply
Anonymous
Not applicable

Generating maximum value from a field in header as new row

Hi all!

 

I'm reaching out in hope that there is some geniuses here on the world wide web that could maybe help me with a transformation issue I have.

 

I have 2 tables that is joined together - order header & order line. The issue is that the order discount is on the order header, and because of this it's repeated for every order line associated with the order. As in the shown example, I would like the discount of 322,8 to be on a seperate row so it can be a part of the total sum. Is there any smart way to do this in Power BI? The new row would also need to inherit the other information such as OrderId and LineStatus.

 

The end goal is that the value from ReceiptDiscount will be in the TotalSale field as a new row.

 

Trailerduck_0-1680115549468.png

 

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

If the tables are not very large in size and the common headings are spelled the same, then you can append the 2 tables.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

I have 2 tables that is joined together - order header & order line

Maybe don't merge them?  Let the data model do the work.  That would save you a lot of storage space too.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.