Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Please help. I don't know how to do this and I keep going down rabbit holes.
I have a fact table, "Incidents", that contains column "Inc_CI_Service".
I have a measure, "PM Count", that gives me the count of tickets for each CI Service for last month.
I have another measure called "Trigger" that returns 1 if PM Count is greater than a variable or 0 if it is not.
I need a formula or set of steps to take to filter the list for Trigger = 1 and then Rank the resulting list/table. Right now, RankX ranks the whole table but I need it to rank the filtered table.
I'm assuming it would involve the creation of a vitual table within the formula that ranks the results but I'm stuck on how to do that. At this point, I can't even figure out how to create a filtered table based on 1 column and two measures.
Please help.
Solved! Go to Solution.
Hi @Anonymous ,
You could consider to set the rank for records have trigger=1 as 999999 or 0, then calculate the rank for other value.
For example:
Hi @Anonymous ,
You could consider to set the rank for records have trigger=1 as 999999 or 0, then calculate the rank for other value.
For example:
Hi,
Hope I understood your needs, and here is something very close.
In a new column to get the ranking for all as you did already I did on my data :
Rank All = RANKX( ALL(ClassResults) , ClassResults[Total pts] )
Rank Female (not only) = RANKX( FILTER( ClassResults , ClassResults[Gender]="Female" ) ,
ClassResults[Total pts] )
Rank Female (strictly) =
VAR CalcRank=RANKX( FILTER( ClassResults , ClassResults[Gender]="Female" ) ,
ClassResults[Total pts] )
RETURN
IF( ClassResults[Gender]="Male" , BLANK() , CalcRank)
Or if you want both ranking, you can do :
Rank by Gender =
VAR CurrGender=ClassResults[Gender]
RETURN
RANKX( FILTER( ALL(ClassResults), ClassResults[Gender]=CurrGender ) , ClassResults[Total pts] )
Hi @Anonymous
Can you please provide sample file?
I cannot. Our company has suppressed the ability to upload files to the cloud sites.
Can you paste sample data, measures code and sample expected results?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
14 | |
11 | |
10 | |
9 |