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 again, thank you for your time so far.
I guess what I'm asking for is what you've done so far but as a measure. If that is even possible.
DimCalendar[Month]
Company[Team]/Company[Emplyee]
Data[Number of Solves]
Each of the table have a relatopship between them.
Hope this makes sense.
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 )
)
- Stu114 years agoFrequent Visitor
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.