Forum Discussion
luis_pflucker
Helper II
5 years agohow to group rows with calculated columns
Hi, I have a table with calculated columns as you see in the attached picture, I am trying to group in same row for example Defect ID 32013, 32026, 32053, etc where as a result the column #TCs Bloc...
MPMP
5 years agoFrequent Visitor
Can share your DAX maesure for RANKX and comparision ? let me take a look at it and see where you are going wrong
- luis_pflucker5 years ago
Helper II
I tried with:
Column = RANKx(all('All Defects (2)'[Defect number]),'All Defects (2)'[ATRKBlockedCOL])Where Defect number = Defect ID and ATRKBlockedCOL is #TCs Blocked- MPMP5 years agoFrequent VisitorTry using the below dax measure:
RANKX(FILTER('Table Name','Table Name'[Column Name1] = EARLIER('Table Name'[Column Name1])),'Table Name'[Column Name2],,DESC,Dense)
The above measure will group your records and assigns rank inside the group- luis_pflucker5 years ago
Helper II
Hi, you mean:
Column = RANKx(filter('All Defects (2)','All Defects (2)'[Defect number]= earlier ('All Defects (2)'[Defect number])),'All Defects (2)'[ATRKBlockedCOL],,DESC,dense).See attached what I got.