March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
I have a Email Interactions table which is at Interaction_ID and SDR_NAME(Sales rep name) level. I want to rank them based on a score (A measure), I'm using the below formula, using ALL() for the rank to consider all the SDRs and not just the selected one. This formula works fine, when I select a particular SDR it give the corresponding rank. But the rank becomes 1 when the timeline slicer is used. I tried ALLEXCEPT(Date Column) instead of ALL(), still not getting the right result. I'm new to dax, can I get some help here?
Hi,
It is likely that your expression is returning unexpected values during eavulation. So try creating measure Also ALL is not as good with RANKX as ALLSELECTED so try using it.
Generally speaking RANKX is pretty forgiving in my mind so the issue is usually in the expression part of the measure.
Example:
Here I have 3 different RANX measures:
Only the second measure is behaving weirdly this is due the ALL's interaction with Year + Month Slicer. When all values are displayed the issue is gone:
So in short, try using ALLSELECTED instead of ALL and double check your expression part of the measure.
Proud to be a Super User!
Hi @Navaneeth_
Please try
Email Rank =
RANKX (
ALL ( 'SALESLOFT_DETAILS'[SDR_NAME] ),
CALCULATE ( [Email_Score] + [Email_Reply_Score], ALL ( 'Table'[Date] ) ) / 2,
,
DESC,
DENSE
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
18 | |
15 | |
9 | |
8 |
User | Count |
---|---|
37 | |
32 | |
21 | |
16 | |
14 |