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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Andreas_029
Frequent Visitor

Look up values and write in same table

Hi All

 

I''m new to Power Bi.

 

I'm working on a table that I got from our ERP database. Each row in that table is taken from our invoices and is either a sales item or a discount (on all items in the invoice and which is usually the last item on our invoices).

 

What I'm trying to achieve is to distribute that overall discount on all sales items. Each of them has a invoice number, a type (L for sales item, R for discount) and position number. Is there any way to look up the row with the discount, find all sales item of the same invoice number and write the discount in the respective discount field.

 

Below a simplified verson of my table:

 

powebi_example.png

 

Andreas

 

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

What is the expected result?

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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