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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Bultark
New Member

Ranking Issues

Hi All,

 

I've been trying out examples in previous posts, but I don't seem to have found the solution to my Ranking issue. 

 

My data looks line like the following

 

ID   Person     Period     Value    Mark

1     Bob         1              100      1

1     Andy       1              150      2

1     Matt        1              200      3

1     Jon          1              0          0

1     Bob         2              100      1

1     Andy       2              200      3

1     Matt        2              150      2

1    Jon           2                0        0

1     Bob         3              100      1

1     Andy       3              200      3

1     Matt        3              150      2

1     Jon          3               0         0

1     Bob         4              200      3

1     Andy       4              100      1

1     Matt        4              190     2

1     Jon          4              0         0

 

The end result would be I'm looking for is the following, there would then be ID 2, ID 3 all with different figures but all with different rankings for them.  

 

Person      Rank     Total Mark    Total Value

Matt           1           9                   690

Andy          2           9                   650

Bob            3           6                   500

Jon             4           0                       0  

 

The issues I have is that at the moment all my rankings show as 1 or some other random number. 

1 ACCEPTED SOLUTION
petrovnikitamai
Resolver V
Resolver V

i'm not sure to understand u but try this

if u want to get the table

image.png

use this query

rank = 
var total = SUMMARIZE(tableName;[Person];"Total Mark";SUM(tableName[Mark]);"Total Value";SUM(tableName[Value]))
return 
ADDCOLUMNS(total;"rank";RANKX(total;[Total Value];;DESC;Dense))

 

View solution in original post

1 REPLY 1
petrovnikitamai
Resolver V
Resolver V

i'm not sure to understand u but try this

if u want to get the table

image.png

use this query

rank = 
var total = SUMMARIZE(tableName;[Person];"Total Mark";SUM(tableName[Mark]);"Total Value";SUM(tableName[Value]))
return 
ADDCOLUMNS(total;"rank";RANKX(total;[Total Value];;DESC;Dense))

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors