Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

RANKX between DATES

Hello everyone

I'm trying to rank based on the PAY figures, but I'd like the start of the classification over the dates.

Example:

DateHR IDGenderPayRange
01/04/2019 00:0070458028F5.64 euros1
01/04/2019 00:0087996123F8.18 euros2
01/04/2019 00:0087998596M8.19 euros3
01/04/2019 00:0088115887M8.28 euros4
01/04/2019 00:0088122916M8.31 euros5
01/04/2019 00:0087933369M8.42 euros6
01/04/2019 00:0088178047M8.47 euros7
01/04/2019 00:0088177948M8.47 euros8
01/04/2019 00:0088177651M8.47 euros9
01/04/2019 00:0088176760M8.47 euros10
01/03/2019 00:0070458028F5.64 euros1
01/03/2019 00:0087996123F8.18 euros2
01/03/2019 00:0087998596M8.19 euros3
01/03/2019 00:0088115887M8.28 euros4
01/03/2019 00:0088122916M8.31 euros5
01/03/2019 00:0087933369M8.42 euros6
01/03/2019 00:0088178047M8.47 euros7
01/03/2019 00:0088177948M8.47 euros8
01/03/2019 00:0088177651M8.47 euros9
01/03/2019 00:0088176760M8.47 euros10

I created a calculated column with DAX: RANKX(ALL('Table'[PAY]), 'Table'[PAY], ,DESC)

However, it is not restarting and start counting from 1 in the following month.
How can I do that?

6 Replies