Forum Discussion
Anonymous
8 years agoNot applicable
Conditional Index Column Based on Date
Good day to you all I am looking for some assistance in creating an index column called Trading Day No. based on the sorted date column. Index numbers should begin at 1 and all rows with the same...
- 8 years ago
Hi Anonymous
With DAX you can achieve the same with RANKX
Add it as a calculated column
Trading Day No. = RANKX ( TableName, TableName[Date],, ASC, DENSE )
v-huizhn-msft
8 years agoMicrosoft Employee
Hi Anonymous,
Please use the solution Zubair_Muhammad posted, it works successfully after test.
expected result
In addition, please mark the right reply as answer, so more members will get useful information or workaround easily.
Best Regards,
Angelia