Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi
The following sample data simplifies my question. It's just to try to convey what I'm trying to do.
In a nutshell, I'm trying to return value from another table by searching for two values.
The use-case I have, I've materials bought by customers, but each customer has a different contract price.
Here is may sample data:
Transaction Data
Purchase Date | Part# | Customer |
1/1/2022 | 1234 | A |
3/1/2022 | 4321 | B |
5/1/2022 | 6789 | C |
Price Table
Customer Name | Part# | Price ($) |
A | 1234 | 10 |
B | 1234 | 15 |
C | 4321 | 25 |
D | 4321 | 45 |
E | 6789 | 33 |
I wish to add a calculated column to the transaction data table where I can look up the price table for both "Customer Name" and "Part Number". The add the corresponding price to the transaction table as calculated column. As shown in the price table, same part number has different prices depending on the customer.
Solved! Go to Solution.
@Anonymous , Create a new column in Transaction Table
maxx(filter(Price, Price[Customer Name] = Transaction[Customer Name] && Price[Part#] = Transaction[Part#]) , Price[Price ($)] )
@Anonymous , Create a new column in Transaction Table
maxx(filter(Price, Price[Customer Name] = Transaction[Customer Name] && Price[Part#] = Transaction[Part#]) , Price[Price ($)] )
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
55 | |
37 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |