Forum Discussion
Anonymous
4 years agoNot applicable
Adding Dense rank
Hi guys,
Can anyone suggest a DAX to add a dense rank over a column and partition by two column. Below is my sample dax for single partition:
RANKX(FILTER(table,table[Date]=EARLIER(table[Date])),
table[Date_Time],,ASC,Dense)
I need to add one more partition.
https://www.sqlbi.com/articles/rankx-on-multiple-columns-with-dax-and-power-bi/
Read this article , hope it help you
4 Replies
- mh2587Super User
https://www.sqlbi.com/articles/rankx-on-multiple-columns-with-dax-and-power-bi/
Read this article , hope it help you
- AnonymousNot applicable
Thank you so much. The article was much helpful
- tamerj1Community Champion
Hi Anonymous
You may tryRanking = RANKX ( CALCULATETABLE ( table, ALLEXCEPT ( table, table[Date], table[Column] ) ), table[Date_Time], , ASC, DENSE )- AnonymousNot applicable
Thank you very much.