Forum Discussion
Ranking Data
- 4 years ago
Hi,
Please check the below picture and the attached pbix file.
Number of solves: = SUM ( Data[Number Of Solves] )Ranking per Month and per Team: = VAR employeetable = ALLEXCEPT ( Data, 'Calendar'[Month], Team[Team] ) RETURN IF ( HASONEVALUE ( Employee[Employee] ) && NOT ISBLANK ( [Number of solves:] ), RANKX ( employeetable, [Number of solves:],, DESC ) ) - 4 years ago
Hi,
In your example:
"ALLEXCEPT ( Data, 'Calendar'[Month], Team[Team] )"
I don't have a table named "data". All the tales are joined using a relationship.
Do I need to look at Crossjoin in order to get this to work?
Thanks,
Hi,
Please check the below picture and the attached pbix file.
Number of solves: =
SUM ( Data[Number Of Solves] )
Ranking per Month and per Team: =
VAR employeetable =
ALLEXCEPT ( Data, 'Calendar'[Month], Team[Team] )
RETURN
IF (
HASONEVALUE ( Employee[Employee] ) && NOT ISBLANK ( [Number of solves:] ),
RANKX ( employeetable, [Number of solves:],, DESC )
)
Hi,
I have copied this and with my version the rank is only ever 1 or blank.
Not sure as to why. I will try and investigate.
Thanks,
- Stu114 years agoFrequent Visitor
Hi,
Cannot seem to figure out why it's not working. Any other suggestions?
Thanks,
- Jihwan_Kim4 years agoSuper User
Hi,
Please share your sample pbix file, and then I can try to have a look into it to come up with a more accurate solution.
Thanks.
- Stu114 years agoFrequent Visitor
Hi,
I believe the issue is I don't have a table named "data" where all this data resides. My data is in 3 sperate tables (although they do have a relationship).
Thanks,Stu