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 all,
I have two tables, Table A and Table B. I want to get the product names (highlighted) in Table B based on the price. This can be done easily in Excel using IF function (as shown in the screenshot above). However, I'm not sure how to do it in PowerBI. I want to fix the formula for the Product column in Table B which means I don't need to change the formula in future. So let say if I changed the name for Product A to Product C and Product B to Product D in Table A, the product names in Table B will change as well, i.e., the product names in Table B is purely based on how we define it in Table A.
I'm not sure how to do it in PowerBI using DAX formula since the number of row for two tables are different. Hope to get some advise from you guys, thank you!
Solved! Go to Solution.
@Anonymous ,Try a new column like
new column = maxx(filter(TableA, TableA[price] = TableB[Price]), TableA[Product])
Refer log - https://www.youtube.com/watch?v=czNHt7UXIe8
@Anonymous ,Try a new column like
new column = maxx(filter(TableA, TableA[price] = TableB[Price]), TableA[Product])
Refer log - https://www.youtube.com/watch?v=czNHt7UXIe8
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 |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
9 | |
8 |