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
Haidannx
Helper I
Helper I

Ranking by category

Hello guys,

 

I`ve a data set like below:

 

Request idPrice
456$1568
456$1569
456$1570
456$1571
456$1572
456$1573
456$1574
456$1575
456$1576
456$1577
456$1578
457$1579
457$1580
457$1581
457$1582
457$1583
457$1584
457$1585
457$1586
345$1587
345$1588
345$1589
345$1590
345$1591
345$1592
345$1593
345$1594

 

Now i`d like to CREATE a new COLUMN to show me In the same request ID, what are the rank of each Price?

 

Thanks in advance.

2 ACCEPTED SOLUTIONS

@Haidannx ,

 

Create Measure like below:

Measure  = RANKX(ALL('Table'), CALCULATE(sum('Table'[Price])))
 
Attaching Screen shot for your reference:
Capture.JPG

Please don't forget to hit THUMBS UP and Accept this as a solution if it helps you!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

V-pazhen-msft
Community Support
Community Support

@Haidannx

Use the rankx function to create the column. 

 

 

Rank Column = RANKX(FILTER('Table','Table'[Request id]=EARLIER('Table'[Request id])),'Table'[Price],,DESC,Dense)

 

 

rank each id.JPG

 

Paul Zheng

View solution in original post

7 REPLIES 7
V-pazhen-msft
Community Support
Community Support

@Haidannx

Use the rankx function to create the column. 

 

 

Rank Column = RANKX(FILTER('Table','Table'[Request id]=EARLIER('Table'[Request id])),'Table'[Price],,DESC,Dense)

 

 

rank each id.JPG

 

Paul Zheng

@V-pazhen-msft  

It worked

Many thanks

@Haidannx 

If my solution solved your problem, please don't forget mark my reply.😝

Best,
Paul


@amitchandak 

 

I`ve read this article and try to follow their instructions step-by-step by the result comes out didn`t exact like i want it to be.
But still, thank you for your support.

@Haidannx ,

 

Create Measure like below:

Measure  = RANKX(ALL('Table'), CALCULATE(sum('Table'[Price])))
 
Attaching Screen shot for your reference:
Capture.JPG

Please don't forget to hit THUMBS UP and Accept this as a solution if it helps you!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

@Tahreem24 

I think that you`ve got me wrong.

I need in the same request id, ranking price by price.

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.