Forum Discussion
Anonymous
7 years agoNot applicable
Rank by Date & Time
Hello, I have a dataset that I am currently ranking by Date, which is working well. However, I have multiple entries for the same day, so I would like it to assign a rank by looking at both the ...
- 7 years ago
Hi Anonymous,
You just need to remove ".[Date]".
Rank = VAR d = EventSignatures[DateSigned] VAR a = EventSignatures[ActiveForm_ld] RETURN CALCULATE ( RANK.EQ ( d, EventSignatures[DateSigned], ASC ), FILTER ( ALL ( 'EventSignatures' ), EventSignatures[ActiveForm_ld] = a ) )Best Regards,
Dale
Ashish_Mathur
6 years agoSuper User
Hi,
Write these measures
Start = SUM(Data[SchedStartTime])
Rank = RANKX(ALL(Data[Resource]),[Start])
Hope this helps.
Anonymous
6 years agoNot applicable
Thanks very much. Since i needed the results urgently, I did the below to get to the desired outcome but thanks for your time. its apprecaited.
1 - CONCATENATE(data[SaSchedDate].[Date],data[resource])
2. RankSaBySchedDateTime = VAR d = Data[SaSchedDate]
VAR a = Data[above concatenated field]
RETURN
CALCULATE (
RANK.EQ ( d, Data[SaSchedDate], ASC ),
FILTER ( ALL ( 'Data' ), data[above concatenated field] = a )
)