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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Ranking

Hello,

 

I have 2 tables

  • Carrier group - gives me a carrier groups numbers and it ranks them by a changing measurement.
  • Carrier - Gives me each carrier and ranks them by the same changing measurement

The problem:

When I filter on a carrier group it shows their rank out of the list of carrier groups (this is great) but the carrier table then only ranks the carriers by the amount that are there, ex. if there are 3 carriers in a group their intial rankings lets say #5,#40, #50 then turn to 1-3. I would like their inital rankings to stay static. Any ideas?

 

Rank measures:2018-12-14 10_46_38-Window.jpg

Carrier  Rank = RANKX(ALL(Data[CARRIER_CODE]),'Period Dimmension'[Period Selection],,0)
Carrier Group Rank = RANKX(ALL(Data[Carrier Group]),[Period Selection],,0)
 
2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Anonymous,

 

I think it will be help if you share some sample data for test.

How to Get Your Question Answered Quickly

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
AlB
Community Champion
Community Champion

Hi @Anonymous

I think you need to avoid the filtering of the carrier group in the carrier rank. Try this:

 

Carrier  Rank =
RANKX (
    ALL ( Data[CARRIER_CODE], Data[Carrier Group] ),
    'Period Dimmension'[Period Selection],
    ,
    0
)

  Or in fact, if carrier group filters the carriers, as I guess it does, this should probably suffice:

 

Carrier  Rank =
RANKX (
    ALL ( Data[Carrier Group] ),
    'Period Dimmension'[Period Selection],
    ,
    0
)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.