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

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.

Reply
iamprajot
Responsive Resident
Responsive Resident

How to get First, Second, Third Max Prices from another Table?

How to get First, Second, Third Max Prices from another Table?

1 ACCEPTED SOLUTION
ausrine
Frequent Visitor

2 REPLIES 2
ausrine
Frequent Visitor

@iamprajot

I believe RANKX() would be suitable here!

https://msdn.microsoft.com/en-us/library/gg492185.aspx

iamprajot
Responsive Resident
Responsive Resident

I have data similar to table A for Product & Prices (each product have 4 or 5 Prices) like

Product       Price

Tea       25

Tea       30

Sugar       15

Sugar       55

Tea       20

 

and

table B for Product and other data

Tea       XYZ

Sugar       XYZ

 

Now what I want is something like below and I have researched a lot and couldn't find a proper solution to that.

Product       Price 1       Price 2       Price 3

Tea       30       25       20

Sugar       55       15       -

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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