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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Getting same rank for different amount

Hi - I am trying to rank the products based on gross profit measure. I am getting same rank sometimes even though amount is different. Below is the screenshot of the issue and the measure I am using -

Can someone suggest what is going wrong with my measure.

ss_gol123_0-1647728222530.png

 

Measure - 

Rank_brandMTD = RANKX (
CROSSJOIN (
ALLSELECTED ( 'DimBrand'[Brand Key] ),
ALLSELECTED ( 'DimBrand'[Brand Parent Name] )
),
[Actual.GrossProfit],
,
DESC,
Dense
)

 

4 REPLIES 4
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

v-luwang-msft
Community Support
Community Support

HI  @Anonymous ,

In my tests this is no problem, you can check my pbix file (my file is created based on the information you have provided so far) and you can reproduce your problem in my pbix and I will adjust it to the specific problem.

vluwangmsft_0-1647928510754.png

 


Best Regards

Lucien

Fowmy
Super User
Super User

@Anonymous 

Please the following measure to rank by two columns

Rank_brandMTD =
RANKX (
    SUMMARIZE (
        ALLSELECTED ( 'DimBrand' ),
        'DimBrand'[Brand Key],
        'DimBrand'[Brand Parent Name]
    ),
    [Actual.GrossProfit],
    ,
    DESC,
    DENSE
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

@Fowmy  - It seem working, but confusing when I put filter on rank_brandMTD. I need to  select brands with ranks 6 to 10. When I do that, I see rank starting 1 to 5. If I use filter to choose rank 1 to 10, then I see same ranks as below - 

ss_gol123_0-1647801246789.png

The filter I tried in this case 

ss_gol123_1-1647801268776.png

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.