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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
LD1
Helper III
Helper III

Use RANX with several filters

Before the selection in segment (Marque commerciale)  : Top rank works :

 

LD1_2-1680532154805.png

And when i select one of "Group" in segment, it doesn't work : 

 

LD1_3-1680532290995.png

 

 

How can i modify the formula RANKX with several filters (segment) ? 

 

rang N TOP CA = RANKX(ALLSELECTED('Sectors[Sectors]),CALCULATE([CA N DATE (m)]),,DESC)

 

Thank you in advance for your help !

 

Léna

 

2 REPLIES 2
MohammadLoran25
Solution Sage
Solution Sage

Hi @LD1 ,

I think your Group column is in a separated table (lets call it GroupTable) which is connected to Sectors Table. If Yes,

Follow steps below:

 

1-Create a calculated column in your Sector Table:

RELATED('GroupTable'[Group])

 

2-Then Put the previous calculated column in your Slicer as your group filter.

 

Then it works as you expect.

 

If this answer solves your problem, please mark it as an accepted solution and gives it a thumbs up so the others would find what they need easier.

Regards,
Loran

 

rautaniket0077
Resolver I
Resolver I

In DAX use group inside AllSelected.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.