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.
I have a list of products, their parts and the price of the parts. The data looks like this:
Product | Part Number | Price |
A | A178 | 5 |
A | A179 | 7 |
A | A172 | 10 |
B | B160 | 5 |
B | B165 | 9 |
I have another query with the list of products and I want to add a column for the most expensive part for each product. It would look like this:
Product | Most Expensive Part Number | Most Expensive Part Price |
A | A172 | 10 |
B | B165 | 9 |
Hi ateebagy,
Create a calculate column using DAX like below:
Most Expensive Part Price =
CALCULATE (
MAX ( Table1[Price] ),
FILTER ( Table1, Table1[Product] = EARLIER ( Table1[Product] ) )
)
Then you can create a table chart and create a slicer chart as below to achieve your requirement:
Regards,
Jimmy Tao
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |