Forum Discussion
HenryJS
Post Prodigy
6 years agoColumn: Count of Previous Column
Hi all,
How can I add a column which has a count of the 'Candidate + Date' column?
So for the bottom highlighted rows it would be 5 as they appear 5 times.
HenryJS , a new column like
countx(filter(table, [candidate+date] =earlier([candidate+date])),[candidate+date])
3 Replies
- amitchandak
Super User
HenryJS , a new column like
countx(filter(table, [candidate+date] =earlier([candidate+date])),[candidate+date])
- AllisonKennedy
Community Champion
Sorry, I don't understand what you're asking. A couple of questions:
1) Why does this need to be a column? What is the end goal and can it be done as measure?
2) Why is the answer 5? Do you want to count the total rows with the same value in the Candidate-Date column?
Try new column:
Rows = COUNTROWS(FILTER(ALL(table), table[Candidate-Date] = EARLIER(table[Candidate-Date]))