Forum Discussion
Ranking in subcategories
- 5 years ago
Hey cdcphist ,
you can filter the table that has to be considered to the current row context company.
Try the following calculated column:
Rank company = VAR vRowCompany = myTable[Company] VAR vFilterTable = FILTER( myTable, myTable[Company] = vRowCompany ) RETURN RANKX( vFilterTable, myTable[Value] )If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍Best regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic - 5 years ago
Hi, cdcphist
I am not sure if I understood your question correctly but please check the below picture and the sample pbix file's link down below.
Rank in Each Company CC =
VAR currentcompany = 'Table'[Company]
RETURN
RANKX ( FILTER ( 'Table', 'Table'[Company] = currentcompany ), 'Table'[Value] )https://www.dropbox.com/s/yseko7od474icwa/cdcphist.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Hey cdcphist ,
you can filter the table that has to be considered to the current row context company.
Try the following calculated column:
Rank company =
VAR vRowCompany = myTable[Company]
VAR vFilterTable = FILTER( myTable, myTable[Company] = vRowCompany )
RETURN
RANKX( vFilterTable, myTable[Value] )
I need Top N Locations based on their sum of scores and ordered by the sum of Total Loss amount, and want to the locations to be ranked for the records where their sum of Toptal Loss amount is not blank, I am able to get the ranked locations based on sum of Total Loss amount but not able to get their sum of scores(of Ranked locations), I am getting al the locations, please help.