The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
)
User | Count |
---|---|
24 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |