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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
iamprajot
Responsive Resident
Responsive Resident

Rank repeated values in increasing order i.e. 1, 2, 3 and so on

Here is the Sample Data which contains repetition of Rep Column and what I need is a Calculated Column to Rank those Rep as 1, 2, 3 and so on.

Please provide solution in 1 Calculated Column without an extra supporting Calculated Column.

 

OrderDateRegionRepItemUnitsUnit CostTotal
18/04/2016CentralAndrewsPencil751.99149.25
04/10/2017CentralAndrewsPencil661.99131.34
31/10/2017CentralAndrewsPencil141.2918.06
21/12/2017CentralAndrewsBinder284.99139.72
26/02/2016CentralGillPen2719.99539.73
15/01/2017CentralGillBinder468.99413.54
14/05/2017CentralGillPencil531.2968.37
31/05/2017CentralGillBinder808.99719.2
09/10/2017CentralGillPencil71.299.03
07/12/2016EastHowardBinder291.9957.71
27/04/2017EastHowardPen964.99479.04
02/09/2016CentralJardinePencil364.99179.64
05/05/2016CentralJardinePencil904.99449.1
24/03/2017CentralJardinePen Set504.99249.5
17/11/2017CentralJardineBinder114.9954.89
12/04/2017CentralJardineBinder9419.991879.1
01/06/2016EastJonesPencil951.99189.05
04/01/2016EastJonesBinder604.99299.4
06/08/2016EastJonesBinder608.99539.4
15/08/2016EastJonesPencil354.99174.65
18/09/2016EastJonesPen Set1615.99255.84
22/10/2016EastJonesPen648.99575.36
18/02/2017EastJonesBinder44.9919.96
07/04/2017EastJonesPen Set624.99309.38
23/01/2016CentralKivellBinder5019.99999.5
25/11/2016CentralKivellPen Set964.99479.04
17/06/2017CentralKivellDesk5125625
08/07/2017CentralKivellPen Set4223.951005.9
25/06/2016CentralMorganPencil904.99449.1
10/05/2016CentralMorganBinder288.99251.72
21/07/2017CentralMorganPen Set5512.49686.95
29/07/2016EastParentBinder8119.991619.2
11/08/2016EastParentPen1519.99299.85
29/12/2016EastParentPen Set7415.991183.3
09/01/2016CentralSmithDesk2125250
12/12/2016CentralSmithPencil671.2986.43
02/01/2017CentralSmithBinder87151305
15/03/2016WestSorvinoPencil562.99167.44
03/07/2017WestSorvinoBinder719.99139.93
24/08/2017WestSorvinoDesk3275825
27/09/2017WestSorvinoPen761.99151.24
22/05/2016WestThompsonPencil321.9963.68
14/10/2017WestThompsonBinder5719.991139.4
1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @iamprajot,

 

Do you mean group rank? If this is a case, you can try to use following formula.

Rank =
RANKX ( FILTER ( Table, [Rep] = EARLIER ( [Rep] ) ), [Total],, ASC, DENSE )

 17.PNG

 

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @iamprajot,

 

Do you mean group rank? If this is a case, you can try to use following formula.

Rank =
RANKX ( FILTER ( Table, [Rep] = EARLIER ( [Rep] ) ), [Total],, ASC, DENSE )

 17.PNG

 

Regards,

Xiaoxin Sheng

I mean Ranking within a group of duplicate values, which gives numbering to the duplicated values.
BTW it worked, although I still need to understand the logic behind the use of earlier.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors